当前位置:网站首页>Explore the authentication mechanism of StarUML
Explore the authentication mechanism of StarUML
2022-07-05 08:31:00 【Learn open source together】
Choose the right one recently , Lightweight UML Tools and nerves ; Tried many tools , The lightest and simplest is StarUML 了 . Here we mainly introduce its StarUML Scientific installation of tools ( Suitable for development ); This is only for technical exchange experience , It is not recommended that you use it for commercial purposes , If there are conditions, it still supports genuine .
explain
I installed StarUML3.2.2 edition ; Here we mainly introduce how to modify its source code to achieve the purpose of scientific installation ;
Tool technology stack analysis
StarUML Adopted technical framework , In terms of performance , It should be based on H5 Of Electron Framework developed ; Therefore, it means that JavaScript or ES6 There should be no problem ( Of course not, it doesn't matter , Follow the scientific installation steps of this article 䠫 Operation is also possible )
Ideas :
- The first is to disable its software License check , Theoretically, it is found in the source code License Corresponding code rules
- Disable the notification of system automatic upgrade monitoring and reminder
preparation
1. install StarUML Software
Go directly to the official website to download and install StarUML Tools , It's better to be consistent with my version ( Except that you want to try a new version ); I won't repeat it here …
2. Install local packaging tools
Before execution , Some preparatory work is needed , Because it uses front-end technology , and Electron So we need to install it on the machine Node Environmental Science ,Electron Packaging tools for .
// install npm
brew install node
// Install packaging tools
npm install asar -g
Perform step 䠫
1. Find the resource package that needs to be installed / route
Find the corresponding installer in the application , The author is based on Mac For example ,Windows Also almost (window The default path :C:\Program Files\StarUML\resources),Mac as follows 
Select the icon –> Right click –> Select... From the menu Show package content ;
Then enter Contents–>Resource Catalog , Find the file 
Copy app.asar file , To any working directory , It will be unzipped and modified
2. Decompress the resource package
I copied the file to a temporary directory , Then enter the directory and execute the following command , Decompress resources
// adopt asar The order will app.asar Unzip the file into the current directory app Catalog
asar extract app.asar app
After the execution is completed, it is as follows 
Unzip the directory 
3. Modify the corresponding restriction code
** The key is coming. :** Open it with a development tool or a tool for editing text , Here I use Visual Studio Tools, for example : The results are as follows , Mainly modify the two marked files in the figure :

1) modify 1License Check :src/engine/license-manager.js
checkLicenseValidity () {
this.validate().then(() => {
setStatus(this, true)
}, () => {
// setStatus(this, false)
// UnregisteredDialog.showDialog()
// avoid : Comment out check License Mechanism and pop-up box
setStatus(this, true)
//UnregisteredDialog.showDialog()
})
}
2) modify 2 Auto update :src/application.js
this.on('application:check-for-updates', (arg) => {
// autoUpdater.checkForUpdatesAndNotify()
})
this.on('application:install-and-restart', (arg) => {
// autoUpdater.quitAndInstall(false, true)
})

4. Pack and cover
go back to APP Catalog , Perform packaging asar pack app app.asar
Will create a new app.asar Copy the file and put it in the installation directory , Replace the original file , Then restart StarUML Tools
5. verification
After restart , Get into Help menu , Try entering the activation key

The following prompt will pop up

As mentioned above, it has been successful
( explain : In fact, even in Help menu , Execution deletion License operation , Finally, it will be activated , It will be the effect just above )
Last , If you think the above operation is too troublesome , You can also download the resource package directly , It has been modified and packaged , Directly overwrite the app.asar File can
Download link
边栏推荐
- Sql Server的存儲過程詳解
- Detailed summary of FIO test hard disk performance parameters and examples (with source code)
- Soem EtherCAT source code analysis attachment 1 (establishment of communication operation environment)
- Negative pressure generation of buck-boost circuit
- STM32 lights up the 1.8-inch screen under Arduino IDE
- [trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
- Why is 1900 not a leap year
- MySQL之MHA高可用集群
- U8g2 drawing
- Sizeof (function name) =?
猜你喜欢

leetcode - 445. Add two numbers II

Arduino+a4988 control stepper motor

STM32 single chip microcomputer - bit band operation

STM32 tutorial triple ADC interleaved sampling

MATLAB小技巧(28)模糊综合评价

STM32---ADC

Talk about the function of magnetic beads in circuits
![[noi simulation] juice tree (tree DP)](/img/19/bc71e8dc3958e4cb87b31423a74617.png)
[noi simulation] juice tree (tree DP)

MATLAB skills (28) Fuzzy Comprehensive Evaluation

每日一题——输入一个日期,输出它是该年的第几天
随机推荐
Infected Tree(树形dp)
Stablq of linked list
[cloud native | learn kubernetes from scratch] III. kubernetes cluster management tool kubectl
STM32 virtualization environment of QEMU
Explain task scheduling based on Cortex-M3 in detail (Part 1)
剑指 Offer 09. 用两个栈实现队列
Buildroot system for making raspberry pie cm3
Take you to understand the working principle of lithium battery protection board
Arduino+a4988 control stepper motor
Talk about the circuit use of TVs tube
Meizu Bluetooth remote control temperature and humidity access homeassistant
[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc
Arrangement of some library files
Anonymous structure in C language
Zero length array in GNU C
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
Shell script realizes the reading of serial port and the parsing of message
UE pixel stream, come to a "diet pill"!
Semiconductor devices (III) FET
实例007:copy 将一个列表的数据复制到另一个列表中。