【实验】编译参数提取
This commit is contained in:
parent
7c7c177d15
commit
86fdaf7f54
@ -2,12 +2,13 @@
|
|||||||
chcp 65001 >nul
|
chcp 65001 >nul
|
||||||
title Simulation Quick Start
|
title Simulation Quick Start
|
||||||
|
|
||||||
|
cd %SIMULATION_MAIN%
|
||||||
if exist "%SIMULATION_MANAGE_BIN%" (
|
if exist "%SIMULATION_MANAGE_BIN%" (
|
||||||
start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc %SIMULATION_VM_PARAMS% -jar %SIMULATION_MANAGE_BIN%"
|
start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc %SIMULATION_VM_PARAMS% -jar %SIMULATION_MANAGE_BIN%"
|
||||||
)
|
)
|
||||||
|
|
||||||
if exist "%SIMULATION_MANAGE_BIN%" (
|
if exist "%SIMULATION_MANAGE_BIN%" (
|
||||||
cd %SIMULATION_MAIN%\web
|
cd web
|
||||||
start "Simulation Website" cmd /k "title Simulation Website && simulation-web.exe -c conf/web.conf"
|
start "Simulation Website" cmd /k "title Simulation Website && simulation-web.exe -c conf/web.conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
#define MyAppPublisher "X"
|
#define MyAppPublisher "X"
|
||||||
#define MyAppURL "~"
|
#define MyAppURL "~"
|
||||||
#define MyAppExeName "simulation"
|
#define MyAppExeName "simulation"
|
||||||
|
#define MyAppExeNameHump "Simulation"
|
||||||
|
#define MyAppExeNameUpper "SIMULATION"
|
||||||
#define MyAppAssocName MyAppName + " File"
|
#define MyAppAssocName MyAppName + " File"
|
||||||
#define MyAppAssocExt ".myp"
|
#define MyAppAssocExt ".myp"
|
||||||
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
|
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
|
||||||
@ -47,7 +49,7 @@ PrivilegesRequired=admin
|
|||||||
ArchitecturesAllowed=x64compatible
|
ArchitecturesAllowed=x64compatible
|
||||||
ArchitecturesInstallIn64BitMode=x64compatible
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
OutputDir=Release\
|
OutputDir=Release\
|
||||||
OutputBaseFilename=SimulationSetup-{#MyAppVersion}
|
OutputBaseFilename={#MyAppExeNameHump}Setup-{#MyAppVersion}
|
||||||
UninstallFilesDir={app}\{#MyAppExeName}
|
UninstallFilesDir={app}\{#MyAppExeName}
|
||||||
UninstallDisplayIcon={app}\{#MyAppExeName}\{#MyAppExeName}.bat
|
UninstallDisplayIcon={app}\{#MyAppExeName}\{#MyAppExeName}.bat
|
||||||
|
|
||||||
@ -63,6 +65,13 @@ Name: "Chinese"; MessagesFile: "compiler:Languages\Chinese.isl"
|
|||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
|
||||||
|
;; 程序 ICO
|
||||||
|
[Icons]
|
||||||
|
;Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}.exe"
|
||||||
|
;Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}.exe"; Tasks: desktopicon
|
||||||
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}\{#MyAppExeName}.bat"; Tasks: desktopicon
|
||||||
|
|
||||||
|
|
||||||
;; 组件安装方式
|
;; 组件安装方式
|
||||||
[Types]
|
[Types]
|
||||||
; 完整安装所有组件
|
; 完整安装所有组件
|
||||||
@ -109,13 +118,13 @@ Name: "{app}\{#MyAppExeName}\web\temp"; Permissions: users-modify; Components: S
|
|||||||
;; 安装时注册表与环境变量列表
|
;; 安装时注册表与环境变量列表
|
||||||
[Registry]
|
[Registry]
|
||||||
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; Flags: uninsdeletevalue; \
|
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; Flags: uninsdeletevalue; \
|
||||||
ValueName: "SIMULATION_MAIN"; ValueData: "{app}\{#MyAppExeName}";
|
ValueName: "{#MyAppExeNameUpper}_MAIN"; ValueData: "{app}\{#MyAppExeName}";
|
||||||
; 启动jar
|
; 启动jar
|
||||||
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; Flags: uninsdeletevalue; \
|
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; Flags: uninsdeletevalue; \
|
||||||
ValueName: "SIMULATION_MANAGE_BIN"; ValueData: "{app}\{#MyAppExeName}\bin\demo-0.0.1.jar";
|
ValueName: "{#MyAppExeNameUpper}_MANAGE_BIN"; ValueData: "{app}\{#MyAppExeName}\bin\demo-0.0.1.jar";
|
||||||
; 扩展启动vm变量
|
; 扩展启动vm变量
|
||||||
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; Flags: uninsdeletevalue; \
|
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; Flags: uninsdeletevalue; \
|
||||||
ValueName: "SIMULATION_VM_PARAMS"; ValueData: " \
|
ValueName: "{#MyAppExeNameUpper}_VM_PARAMS"; ValueData: " \
|
||||||
--enable-preview \
|
--enable-preview \
|
||||||
-Dserver.port=28280 \
|
-Dserver.port=28280 \
|
||||||
-Djasypt.encryptor.password=jwnwfA1pIoLihBptgbR8S6UEEAfGurjG \
|
-Djasypt.encryptor.password=jwnwfA1pIoLihBptgbR8S6UEEAfGurjG \
|
||||||
@ -129,12 +138,6 @@ Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environmen
|
|||||||
";
|
";
|
||||||
|
|
||||||
|
|
||||||
;; 程序 ICO
|
|
||||||
[Icons]
|
|
||||||
;Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}.exe"
|
|
||||||
;Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}.exe"; Tasks: desktopicon
|
|
||||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}\{#MyAppExeName}.bat"; Tasks: desktopicon
|
|
||||||
|
|
||||||
|
|
||||||
;; 安装完运行的菜单与后续操作
|
;; 安装完运行的菜单与后续操作
|
||||||
; [Run]
|
; [Run]
|
||||||
@ -272,6 +275,6 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
[UninstallRun]
|
[UninstallRun]
|
||||||
Filename: "taskkill"; Parameters: "-f -im simulation-web.exe"; Flags: runascurrentuser runhidden waituntilterminated
|
Filename: "taskkill"; Parameters: "-f -im {#MyAppExeName}-web.exe"; Flags: runascurrentuser runhidden waituntilterminated
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user