当前位置:网站首页>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
边栏推荐
- Zero length array in GNU C
- 实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
- Soem EtherCAT source code analysis II (list of known configuration information)
- Sword finger offer 06 Print linked list from end to end
- MySQL MHA high availability cluster
- Count the number of inputs (C language)
- MySQL之MHA高可用集群
- Sql Server的存儲過程詳解
- Arrangement of some library files
- 实例008:九九乘法表
猜你喜欢
实例007:copy 将一个列表的数据复制到另一个列表中。
Management and use of DokuWiki (supplementary)
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
Keil use details -- magic wand
[trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication
如何写Cover Letter?
Example 010: time to show
List of linked lists
【三层架构】
Matlab tips (28) fuzzy comprehensive evaluation
随机推荐
Sword finger offer 09 Implementing queues with two stacks
每日一题——输入一个日期,输出它是该年的第几天
List of linked lists
2022.7.4-----leetcode.1200
[trio basic tutorial 17 from getting started to mastering] set up and connect the trio motion controller and input the activation code
Simple design description of MIC circuit of ECM mobile phone
Semiconductor devices (III) FET
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
Classic application of MOS transistor circuit design (2) - switch circuit design
Zero length array in GNU C
【三层架构及JDBC总结】
Ble encryption details
Sql Server的存儲過程詳解
剑指 Offer 05. 替换空格
[trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
QEMU demo makefile analysis
Sizeof (function name) =?
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
Briefly talk about the identification protocol of mobile port -bc1.2
【三层架构】