当前位置:网站首页>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
边栏推荐
- Infected Tree(树形dp)
- Imx6ull bare metal development learning 2- use C language to light LED indicator
- Zero length array in GNU C
- Esphone retrofits old fans
- [tutorial 19 of trio basic from introduction to proficiency] detailed introduction of trio as a slave station connecting to the third-party bus (anybus PROFIBUS DP...)
- Arduino+a4988 control stepper motor
- Stm32--- systick timer
- UE pixel stream, come to a "diet pill"!
- Circleq of linked list
- 第十八章 使用工作队列管理器(一)
猜你喜欢
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
【NOI模拟赛】汁树(树形DP)
【三层架构及JDBC总结】
Management and use of DokuWiki
MATLAB小技巧(28)模糊综合评价
Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
STM32 lights up the 1.8-inch screen under Arduino IDE
Lori remote control commissioning record
Soem EtherCAT source code analysis attachment 1 (establishment of communication operation environment)
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
随机推荐
Summary of SIM card circuit knowledge
Some pitfalls of win10 network sharing
Sword finger offer 09 Implementing queues with two stacks
MHA High available Cluster for MySQL
Various types of questions judged by prime numbers within 100 (C language)
MATLAB skills (28) Fuzzy Comprehensive Evaluation
[three tier architecture]
Shell script realizes the reading of serial port and the parsing of message
UE像素流,来颗“减肥药”吧!
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Stablq of linked list
Buildroot system for making raspberry pie cm3
Cmder of win artifact
2022.7.4-----leetcode. one thousand and two hundred
Keil use details -- magic wand
[nas1] (2021cvpr) attentivenas: improving neural architecture search via attentive sampling (unfinished)
FIO测试硬盘性能参数和实例详细总结(附源码)
Talk about the circuit use of TVs tube
Design a clock frequency division circuit that can be switched arbitrarily
U8g2 drawing