From edf60b58e4e33607b3929cfd6c678b88b49abaab Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 7 Jan 2026 14:54:35 +0800 Subject: Move template files to templates directory --- setup/windows/setup_jv_cli_template.iss | 42 --------------------------------- src/data/compile_info.rs.template | 24 ------------------- templates/compile_info.rs | 24 +++++++++++++++++++ templates/setup_jv_cli.iss | 42 +++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 66 deletions(-) delete mode 100644 setup/windows/setup_jv_cli_template.iss delete mode 100644 src/data/compile_info.rs.template create mode 100644 templates/compile_info.rs create mode 100644 templates/setup_jv_cli.iss diff --git a/setup/windows/setup_jv_cli_template.iss b/setup/windows/setup_jv_cli_template.iss deleted file mode 100644 index 124d897..0000000 --- a/setup/windows/setup_jv_cli_template.iss +++ /dev/null @@ -1,42 +0,0 @@ -#define MyAppName "JustEnoughVCS" -#define MyAppVersion "<<>>" -#define MyAppPublisher "<<>>" -#define MyAppURL "<<>>" - -[Setup] -AppId={{8265DF21-F290-487E-9403-C2730EC31A03} -AppName={#MyAppName} -AppVersion={#MyAppVersion} -AppPublisher={#MyAppPublisher} -AppPublisherURL={#MyAppURL} -AppSupportURL={#MyAppURL} -AppUpdatesURL={#MyAppURL} -DefaultDirName={autopf}\{#MyAppName} -DefaultGroupName={#MyAppName} -AllowNoIcons=yes -LicenseFile=..\..\LICENSE -PrivilegesRequired=lowest -OutputDir=..\..\export\setup -OutputBaseFilename=JustEnoughVCS For Windows -SetupIconFile=..\..\docs\images\Yizi.ico -SolidCompression=yes -WizardStyle=modern dynamic - -[Languages] -Name: "english"; MessagesFile: "compiler:Default.isl" - -[Files] -Source: "..\..\export\*"; Excludes: "setup"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs -Source: "inst.ps1"; DestDir: "{app}\scripts\"; Flags: ignoreversion -Source: "uninst.ps1"; DestDir: "{app}\scripts\"; Flags: ignoreversion - -[Run] -Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{app}\scripts\inst.ps1"""; Flags: runhidden; Description: "Running post-installation script..."; StatusMsg: "Running post-installation script..."; AfterInstall: RunPostInstall - -[UninstallRun] -Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{app}\scripts\uninst.ps1"""; Flags: runhidden; RunOnceId: "UninstallScript" - -[Code] -procedure RunPostInstall; -begin -end; diff --git a/src/data/compile_info.rs.template b/src/data/compile_info.rs.template deleted file mode 100644 index b65055b..0000000 --- a/src/data/compile_info.rs.template +++ /dev/null @@ -1,24 +0,0 @@ -pub struct CompileInfo { - pub date: String, - pub target: String, - pub platform: String, - pub toolchain: String, - - pub cli_version: String, - pub build_branch: String, - pub build_commit: String, -} - -impl Default for CompileInfo { - fn default() -> Self { - Self { - date: "{date}".to_string(), - target: "{target}".to_string(), - platform: "{platform}".to_string(), - toolchain: "{toolchain}".to_string(), - cli_version: "{version}".to_string(), - build_branch: "{branch}".to_string(), - build_commit: "{commit}".to_string(), - } - } -} diff --git a/templates/compile_info.rs b/templates/compile_info.rs new file mode 100644 index 0000000..b65055b --- /dev/null +++ b/templates/compile_info.rs @@ -0,0 +1,24 @@ +pub struct CompileInfo { + pub date: String, + pub target: String, + pub platform: String, + pub toolchain: String, + + pub cli_version: String, + pub build_branch: String, + pub build_commit: String, +} + +impl Default for CompileInfo { + fn default() -> Self { + Self { + date: "{date}".to_string(), + target: "{target}".to_string(), + platform: "{platform}".to_string(), + toolchain: "{toolchain}".to_string(), + cli_version: "{version}".to_string(), + build_branch: "{branch}".to_string(), + build_commit: "{commit}".to_string(), + } + } +} diff --git a/templates/setup_jv_cli.iss b/templates/setup_jv_cli.iss new file mode 100644 index 0000000..f78041d --- /dev/null +++ b/templates/setup_jv_cli.iss @@ -0,0 +1,42 @@ +#define MyAppName "JustEnoughVCS" +#define MyAppVersion "<<>>" +#define MyAppPublisher "<<>>" +#define MyAppURL "<<>>" + +[Setup] +AppId={{8265DF21-F290-487E-9403-C2730EC31A03} +AppName={#MyAppName} +AppVersion={#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +AppSupportURL={#MyAppURL} +AppUpdatesURL={#MyAppURL} +DefaultDirName={autopf}\{#MyAppName} +DefaultGroupName={#MyAppName} +AllowNoIcons=yes +LicenseFile=..\..\LICENSE +PrivilegesRequired=lowest +OutputDir=..\..\deploy\setup +OutputBaseFilename=JustEnoughVCS For Windows +SetupIconFile=..\..\docs\images\Yizi.ico +SolidCompression=yes +WizardStyle=modern dynamic + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl" + +[Files] +Source: "..\..\deploy\*"; Excludes: "setup"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "inst.ps1"; DestDir: "{app}\scripts\"; Flags: ignoreversion +Source: "uninst.ps1"; DestDir: "{app}\scripts\"; Flags: ignoreversion + +[Run] +Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{app}\scripts\inst.ps1"""; Flags: runhidden; Description: "Running post-installation script..."; StatusMsg: "Running post-installation script..."; AfterInstall: RunPostInstall + +[UninstallRun] +Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{app}\scripts\uninst.ps1"""; Flags: runhidden; RunOnceId: "UninstallScript" + +[Code] +procedure RunPostInstall; +begin +end; -- cgit