Skip to content

Commit

Permalink
update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Oct 1, 2021
1 parent 9a6ff39 commit d836fc4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
25 changes: 19 additions & 6 deletions installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "WingetUI Store"
#define MyAppVersion "0.2"
#define MyAppVersion "0.4"
#define MyAppPublisher "SomePythonThings"
#define MyAppURL "https://www.somepythonthings.tk/"
#define MyAppExeName "WingetUI Store.exe"
Expand All @@ -18,25 +18,38 @@ AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName="{autopf}\WingetUI Store v0.2"
DefaultDirName="{autopf}\WingetUI Store v0.4"
DisableProgramGroupPage=yes
; Remove the following line to run in administrative install mode (install for all users.)
PrivilegesRequired=lowest
OutputBaseFilename=WingetUI Store Installer
SetupIconFile=C:\Users\marti\SPTPrograms\WinGetUI\wingetui\icon.ico
SetupIconFile=Y:\WinGetUI-Store\wingetui\icon.ico
Compression=lzma
SolidCompression=yes
WizardStyle=classic

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

[Code]
procedure InitializeWizard;
begin
WizardForm.Bevel.Visible := False;
WizardForm.Bevel1.Visible := True;
end;
procedure TaskKill(FileName: String);
var
ResultCode: Integer;
begin
Exec('taskkill.exe', '/f /im ' + '"' + FileName + '"', '', SW_HIDE,
ewWaitUntilTerminated, ResultCode);
end;
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\marti\SPTPrograms\WinGetUI\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\marti\SPTPrograms\WinGetUI\remove-old.cmd"; DestDir: "{app}"; Flags: deleteafterinstall
Source: "Y:\WinGetUI-Store\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; BeforeInstall: TaskKill('WingetUI Store.exe')
Source: "Y:\WinGetUI-Store\remove-old.cmd"; DestDir: "{app}"; Flags: deleteafterinstall
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down
2 changes: 1 addition & 1 deletion wingetui/Win.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package_imports = [['qtmodern', ['resources/frameless.qss', 'resources/style.qss
a = Analysis(['__init__.py'],
pathex=['Y:\WingetUI-Store\wingetui'],
binaries=[('MainWindow.py', '.'), ('Tabs.py', '.'), ('Tools.py', '.'), ('WingetTools.py', '.'), ('ScoopTools.py', '.')],
datas=[('*.png', '.'), ('*.gif', '.'), ('*.ico', '.')],
datas=[('*.png', '.'), ('*.gif', '.'), ('*.ico', '.'), ('*.cmd', '.'), ("winget-cli/", "winget-cli/")],
hiddenimports=['pkg_resources.py2_warn', "darkdetect", "qtmodern",],
hookspath=[],
runtime_hooks=[],
Expand Down

0 comments on commit d836fc4

Please sign in to comment.