diff --git a/Installer.iss b/Installer.iss index 8a87a2ffb..4d82e4956 100644 --- a/Installer.iss +++ b/Installer.iss @@ -2,8 +2,8 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Jackett" -#define MyAppVersion GetFileVersion("BuildOutput\FullFramework\Windows\Jackett\Jackett.Common.dll") -#define MyAppPublisher "Jackett Inc." +#define MyAppVersion GetFileVersion(MyFileForVersion) +#define MyAppPublisher "Jackett" #define MyAppURL "https://github.com/Jackett/Jackett" #define MyAppExeName "JackettTray.exe" @@ -22,9 +22,10 @@ AppUpdatesURL={#MyAppURL} DefaultDirName={pf}\{#MyAppName} DefaultGroupName={#MyAppName} DisableProgramGroupPage=yes -OutputBaseFilename=Jackett.Installer.Windows +OutputBaseFilename={#MyOutputFilename} SetupIconFile=src\Jackett.Console\jackett.ico UninstallDisplayIcon={commonappdata}\Jackett\JackettConsole.exe +VersionInfoVersion={#MyAppVersion} Compression=lzma SolidCompression=yes DisableDirPage=yes @@ -37,9 +38,7 @@ Name: "windowsService"; Description: "Install as a Windows Service" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: "BuildOutput\FullFramework\Windows\Jackett\JackettTray.exe"; DestDir: "{commonappdata}\Jackett"; Flags: ignoreversion -Source: "BuildOutput\FullFramework\Windows\Jackett\JackettUpdater.exe"; DestDir: "{commonappdata}\Jackett"; Flags: ignoreversion -Source: "BuildOutput\FullFramework\Windows\Jackett\*"; DestDir: "{commonappdata}\Jackett"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "{#MySourceFolder}\Jackett\*"; DestDir: "{commonappdata}\Jackett"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] diff --git a/build.cake b/build.cake index 3d9c8463e..710ab6d7d 100644 --- a/build.cake +++ b/build.cake @@ -119,9 +119,18 @@ Task("Package-Windows-Installer-Full-Framework") .IsDependentOn("Check-Packaging-Platform") .Does(() => { - InnoSetup("./Installer.iss", new InnoSetupSettings { - OutputDirectory = workingDir + "/" + artifactsDirName - }); + string sourceFolder = MakeAbsolute(Directory(windowsBuildFullFramework)).ToString(); + + InnoSetupSettings settings = new InnoSetupSettings(); + settings.OutputDirectory = workingDir + "/" + artifactsDirName; + settings.Defines = new Dictionary + { + { "MyFileForVersion", sourceFolder + "/Jackett/Jackett.Common.dll" }, + { "MySourceFolder", sourceFolder }, + { "MyOutputFilename", "Jackett.Installer.Windows" }, + }; + + InnoSetup("./Installer.iss", settings); }); Task("Package-Files-Full-Framework-Windows") diff --git a/src/Jackett.Service/App.config b/src/Jackett.Service/App.config deleted file mode 100644 index 2532b3ad8..000000000 --- a/src/Jackett.Service/App.config +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/Jackett.Service/Jackett.Service.csproj b/src/Jackett.Service/Jackett.Service.csproj index ed3dce7ec..38bbce463 100644 --- a/src/Jackett.Service/Jackett.Service.csproj +++ b/src/Jackett.Service/Jackett.Service.csproj @@ -14,6 +14,7 @@ true PackageReference win + AnyCPU @@ -65,25 +66,14 @@ - - - - - {74420a79-cc16-442c-8b1e-7c1b913844f0} - CurlSharp - {6B854A1B-9A90-49C0-BC37-9A35C75BCA73} Jackett.Common - - {e636d5f8-68b4-4903-b4ed-ccfd9c9e899f} - Jackett -