diff --git a/installer-64.iss b/build-installer.iss similarity index 83% rename from installer-64.iss rename to build-installer.iss index f9042a7..7d944e3 100644 --- a/installer-64.iss +++ b/build-installer.iss @@ -7,6 +7,11 @@ #define MyAppURL "https://www.hiimray.co.uk/software-fizzy-launcher" #define MyAppExeName "fizzylauncher.exe" +#define AppSourcePath "L:\gitea-hiimray\linear-app-launcher\bin\Release\64" +#define AppReleasePath "L:\gitea-hiimray\linear-app-launcher\bin\Release" +#define AppReleaseName "fizzy-launcher" + + [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.) @@ -23,8 +28,8 @@ DefaultGroupName={#MyAppName} DisableProgramGroupPage=yes ; Remove the following line to run in administrative install mode (install for all users.) PrivilegesRequired=lowest -OutputDir=L:\gitea-hiimray\linear-app-launcher\bin\Release -OutputBaseFilename=fizzy-launcher +OutputDir={#AppReleasePath} +OutputBaseFilename={#AppReleaseName} Compression=lzma SolidCompression=yes WizardStyle=modern @@ -36,7 +41,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: "L:\gitea-hiimray\linear-app-launcher\bin\Release\fizzylauncher.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "{#AppSourcePath}\fizzylauncher.exe"; DestDir: "{app}"; Flags: ignoreversion ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] diff --git a/build.bat b/build.bat index 13233c7..d90b1f3 100644 --- a/build.bat +++ b/build.bat @@ -1,5 +1,10 @@ -rmdir /s /q "bin\Release\64\" -dotnet publish skye.sln -r win-x64 -c Release /p:PublishSingleFile=true /p:SelfContained=false /p:PublishReadyToRunfalse=true /p:PublishDir="bin\Release\" +rmdir /s /q "bin\Release\" +dotnet publish skye.sln -r win-x64 -c Release /p:PublishSingleFile=true /p:SelfContained=false /p:PublishReadyToRunfalse=true /p:PublishDir="bin\Release\64\" ##rmdir /s /q "bin\Release\86\" -##dotnet publish skye.sln -r win-x86 -c Release /p:PublishSingleFile=true /p:SelfContained=false /p:PublishReadyToRunfalse=true /p:PublishDir="bin\Release\" \ No newline at end of file +##dotnet publish skye.sln -r win-x86 -c Release /p:PublishSingleFile=true /p:SelfContained=false /p:PublishReadyToRunfalse=true /p:PublishDir="bin\Release\" + +"C:\B\Portable Files (dev)\Inno Setup\v6.0.4-2\app\ISCC.exe" "build-installer.iss" + +cd "bin\Release\64\" +"C:\B\Portable Files\PeaZip (Portable)\v6.5.1\App\PeaZip\res\7z\7z.exe" a -t7z "..\fizzy-launcher.7z" "*" -mx9 \ No newline at end of file