mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-05-10 02:19:46 +08:00
v8.0版本更新:添加SDL3图形化界面功能和完善文档
This commit is contained in:
+10
-6
@@ -26,17 +26,21 @@ Section "Main"
|
||||
File "..\\gobang_config.ini"
|
||||
File "..\\README.md"
|
||||
|
||||
; Copy executable file if exists
|
||||
IfFileExists "..\\gobang.exe" 0 +2
|
||||
File "..\\gobang.exe"
|
||||
; Copy GUI executable file if exists
|
||||
IfFileExists "..\\gobang_gui.exe" 0 +2
|
||||
File "..\\gobang_gui.exe"
|
||||
|
||||
; Copy SDL3 library if exists
|
||||
IfFileExists "..\\SDL3.dll" 0 +2
|
||||
File "..\\SDL3.dll"
|
||||
|
||||
; Create program group directory
|
||||
CreateDirectory "$SMPROGRAMS\Gobang"
|
||||
|
||||
; Create shortcuts (only if executable exists)
|
||||
IfFileExists "$INSTDIR\gobang.exe" 0 +3
|
||||
CreateShortCut "$DESKTOP\Gobang.lnk" "$INSTDIR\gobang.exe"
|
||||
CreateShortCut "$SMPROGRAMS\Gobang\Gobang.lnk" "$INSTDIR\gobang.exe"
|
||||
IfFileExists "$INSTDIR\gobang_gui.exe" 0 +3
|
||||
CreateShortCut "$DESKTOP\Gobang.lnk" "$INSTDIR\gobang_gui.exe"
|
||||
CreateShortCut "$SMPROGRAMS\Gobang\Gobang.lnk" "$INSTDIR\gobang_gui.exe"
|
||||
|
||||
; Write uninstall information
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
|
||||
+9
-11
@@ -20,14 +20,16 @@ WizardStyle=modern
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
; 可执行文件
|
||||
Source: "..\\gobang.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
; GUI可执行文件
|
||||
Source: "..\\gobang_gui.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
|
||||
; SDL3动态库
|
||||
Source: "..\\SDL3.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
|
||||
; 配置文件
|
||||
Source: "..\\gobang_config.ini"; DestDir: "{app}"; Flags: ignoreversion
|
||||
@@ -43,15 +45,11 @@ Source: "..\\README.md"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Name: "{app}\records"
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\Gobang Game"; Filename: "{app}\gobang.exe"; Check: FileExists(ExpandConstant('{app}\gobang.exe'))
|
||||
Name: "{group}\Gobang Game"; Filename: "{app}\gobang_gui.exe"
|
||||
Name: "{group}\{cm:UninstallProgram,Gobang Game}"; Filename: "{uninstallexe}"
|
||||
Name: "{autodesktop}\Gobang Game"; Filename: "{app}\gobang.exe"; Tasks: desktopicon; Check: FileExists(ExpandConstant('{app}\gobang.exe'))
|
||||
Name: "{autodesktop}\Gobang Game"; Filename: "{app}\gobang_gui.exe"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\gobang.exe"; Description: "{cm:LaunchProgram,Gobang Game}"; Flags: nowait postinstall skipifsilent; Check: FileExists(ExpandConstant('{app}\gobang.exe'))
|
||||
Filename: "{app}\gobang_gui.exe"; Description: "{cm:LaunchProgram,Gobang Game}"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
|
||||
[Code]
|
||||
function FileExists(const FileName: string): Boolean;
|
||||
begin
|
||||
Result := FileExists(FileName);
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user