Skip to content

Commit

Permalink
feat: 添加了 setup.exe 文件相关配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-ZhiHang committed Nov 18, 2024
1 parent f2a6238 commit d4935b3
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
Binary file added assert/setup.ico
Binary file not shown.
58 changes: 58 additions & 0 deletions setup.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "XDU_WallNut_v1.2.2"
#define MyAppVersion "1.2.2"
#define MyAppPublisher "Yang-ZhiHang"
#define MyAppURL "https://github.com/Yang-ZhiHang/XDU-WallNut"
#define MyAppExeName "XDU_WallNut.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{0955F5B4-912C-43B5-9278-BC8A121618DA}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
; on anything but x64 and Windows 11 on Arm.
ArchitecturesAllowed=x64compatible
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
; meaning it should use the native 64-bit Program Files directory and
; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=D:\dev\XDU_WallNut\dist
OutputBaseFilename=XDU_WallNut_v1.2.2
SetupIconFile=D:\dev\XDU_WallNut\assert\setup.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern

[Languages]
Name: "ChineseSimplified"; MessagesFile: "compiler:languages\ChineseSimplified.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone

[Files]
Source: "D:\dev\XDU_WallNut\dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\dev\XDU_WallNut\dist\Updater.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\dev\XDU_WallNut\dist\version.json"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

0 comments on commit d4935b3

Please sign in to comment.