-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
在 `arm-build.iss` 文件中: * 添加头部注释和定义。 * 配置应用程序信息和安装设置。 * 添加简体中文语言支持。 * 配置桌面图标任务和文件关联。 * 配置安装完成后运行的程序。 在 `build.iss` 文件中: * 更新应用程序信息和安装设置。 * 删除英文语言支持,仅保留简体中文。 在 `Program.cs` 文件中: * 添加 `HostApplication.Builder()` 和 `CrossPlatformCustomProtocolHelper.RegisterCustomProtocol()` 调用。 在 `ChatBoxLogger.cs` 文件中: * 重构 `ChatBoxLogger` 类,添加日志目录创建逻辑。 在 `App.axaml.cs` 文件中: * 删除不必要的 `using` 语句。 * 更新 `OnFrameworkInitializationCompleted` 方法,使用 `HostApplication.Services` 获取 `MainWindow` 实例。
- Loading branch information
Showing
5 changed files
with
136 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
; Script generated by the Inno Setup Script Wizard. | ||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | ||
|
||
#define MyAppName "ChatBox" | ||
#define MyAppVersion "0.1.1" | ||
#define MyAppPublisher "TokenAi" | ||
#define MyAppURL "https://api.token-ai.cn" | ||
#define MyAppExeName "ChatBox.Desktop.exe" | ||
#define MyAppAssocName MyAppName + "" | ||
#define MyAppAssocExt ".exe" | ||
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt | ||
|
||
[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={{1E9A7D67-5468-469D-86AB-FFE07136EBD1} | ||
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 | ||
ChangesAssociations=yes | ||
DisableProgramGroupPage=yes | ||
; Uncomment the following line to run in non administrative install mode (install for current user only.) | ||
;PrivilegesRequired=lowest | ||
PrivilegesRequiredOverridesAllowed=dialog | ||
OutputDir=D:\GitHub\ChatBox\outpu | ||
OutputBaseFilename=win-arm64 | ||
SetupIconFile=D:\GitHub\ChatBox\favicon.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: unchecked | ||
|
||
[Files] | ||
Source: "D:\GitHub\ChatBox\src\ChatBox.Desktop\bin\Release\net9.0\publish\win-arm64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion | ||
Source: "D:\GitHub\ChatBox\src\ChatBox.Desktop\bin\Release\net9.0\publish\win-arm64\i18n\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
Source: "D:\GitHub\ChatBox\src\ChatBox.Desktop\bin\Release\net9.0\publish\win-arm64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files | ||
|
||
[Registry] | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" | ||
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: "" | ||
|
||
[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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters