Skip to content

Commit

Permalink
更换应用图标;添加ReadyToRun;增加打包程序
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayaku committed Feb 2, 2023
1 parent 8dcfacc commit 67ad55e
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ImageManager/ImageManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<ApplicationIcon>icon.ico</ApplicationIcon>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;Core</DefineConstants>
</PropertyGroup>
Expand Down
Binary file modified ImageManager/icon.ico
Binary file not shown.
Binary file added design/Icon.psd
Binary file not shown.
Binary file added design/bg_finished.psd
Binary file not shown.
Binary file added design/bg_installing.psd
Binary file not shown.
Binary file added design/bg_welcome.psd
Binary file not shown.
Binary file added design/btn_complete.psd
Binary file not shown.
Binary file added design/btn_setup.psd
Binary file not shown.
Binary file not shown.
Binary file added 打包程序/icon.ico
Binary file not shown.
59 changes: 59 additions & 0 deletions 打包程序/script.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
; 脚本用 Inno Setup 脚本向导 生成。
; 查阅文档获取创建 INNO SETUP 脚本文件的详细资料!

#define MyAppName "素材管理姬"
#define MyAppVersion "3.0.1"
#define MyAppPublisher "NGMKS"
#define MyAppURL "https://github.com/nayaku/ImageManager"
#define MyAppExeName "ImageManager.exe"
#define ProjectPath "..\publish"
#define SetupIconFilePath "icon.ico"
#define LicenseFilePath "..\license.txt"

[Setup]
; 注意: AppId 的值是唯一识别这个程序的标志。
; 不要在其他程序中使用相同的 AppId 值。
; (在编译器中点击菜单“工具 -> 产生 GUID”可以产生一个新的 GUID)
AppId={{C0B2618D-A2BC-4A8B-8600-5ED31A9A5583}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\ImageManager
DisableProgramGroupPage=yes
DefaultGroupName={#MyAppName}
OutputBaseFilename={#MyAppName}安装程序
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=commandline
Compression=lzma2/max
SolidCompression=yes
WizardStyle=modern
SetupIconFile={#SetupIconFilePath}

[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
;Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1

[Files]
Source: "{#ProjectPath}\ImageManager.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#ProjectPath}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享的系统文件使用 "Flags: ignoreversion"

[Icons]
;Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
;Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
;Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
;Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
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 67ad55e

Please sign in to comment.