Skip to content

Commit

Permalink
Update Installed and Version
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis committed Mar 21, 2023
1 parent 39185da commit d8b8525
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Installer/ShokoDesktop.iss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define AppVer GetFileVersion('..\Shoko.Desktop\bin\Release\ShokoDesktop.exe')
#define AppVer GetFileVersion('..\Shoko.Desktop\bin\Release\net6.0-windows\ShokoDesktop.exe')
#define AppSlug Copy(AppVer, 1, Len(AppVer) - 2)
#define MyAppExeName "ShokoDesktop.exe"

[Setup]
Expand All @@ -11,7 +12,7 @@

AppId={{EFA49A76-085F-4E64-AEC4-6ACA707A5D91}
AppName=Shoko Desktop
AppVersion=4.1.2.0
AppVersion=4.2.0.0
AppVerName=Shoko Desktop
AppPublisher=Shoko Team
AppPublisherURL=https://ShokoAnime.com/
Expand All @@ -20,7 +21,7 @@ AppUpdatesURL=https://ShokoAnime.com/downloads
DefaultDirName={pf}\Shoko\Shoko Desktop
DefaultGroupName=Shoko Desktop
AllowNoIcons=yes
OutputBaseFilename=Shoko_Desktop_Setup_{#AppVer}
OutputBaseFilename=Shoko-Desktop-Setup-{#AppSlug}
UninstallDisplayIcon={app}\{#MyAppExeName}
SolidCompression=yes
InternalCompressLevel=max
Expand All @@ -39,7 +40,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{

[Files]
Source: "..\..\ShokoDesktop\Installer\FixPermissions.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\Shoko.Desktop\bin\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "..\Shoko.Desktop\bin\Release\net6.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{group}\Shoko Desktop"; Filename: "{app}\ShokoDesktop.exe"
Expand All @@ -49,7 +50,7 @@ Name: "{commondesktop}\Shoko Desktop"; Filename: "{app}\ShokoDesktop.exe"; Tasks
[Run]
Filename: "{app}\FixPermissions.bat";
Filename: "{app}\ShokoDesktop.exe"; Flags: nowait postinstall skipifsilent shellexec; Description: "{cm:LaunchProgram,Shoko Desktop}"
Filename: "https://shokoanime.com/blog/shoko-version-4-1-2-released/"; Flags: shellexec runasoriginaluser postinstall; Description: "View 4.1.2 Release Notes"
Filename: "https://shokoanime.com/blog/shoko-version-420-released/"; Flags: shellexec runasoriginaluser postinstall; Description: "View 4.2.0 Release Notes"

[Dirs]
Name: "{app}"; Permissions: users-full
Expand Down
4 changes: 2 additions & 2 deletions Shoko.Desktop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.1.2.0")]
[assembly: AssemblyFileVersion("4.1.2.0")]
[assembly: AssemblyVersion("4.2.0.0")]
[assembly: AssemblyFileVersion("4.2.0.0")]
[assembly: AllowPartiallyTrustedCallers]
[assembly: SecurityRules(SecurityRuleSet.Level1)]

0 comments on commit d8b8525

Please sign in to comment.