Skip to content

Commit dbbaa27

Browse files
committed
Switch to nuget python
Signed-off-by: miigotu <[email protected]>
1 parent bf38c1d commit dbbaa27

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

SickChill.iss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <.\idp\idp.iss>
22

3-
#define SickChillInstallerVersion "v0.5.9"
3+
#define SickChillInstallerVersion "v0.5.10"
44

55
#define AppId "{{B0D7EA3E-CC34-4BE6-95D5-3C3D31E9E1B2}"
66
#define AppName "SickChill"
@@ -72,8 +72,8 @@ Filename: "{app}\Git\cmd\git.exe"; Parameters: "clone {#AppRepoUrl} ""{app}\{#Ap
7272
;Service
7373
Filename: "{app}\Installer\nssm.exe"; Parameters: "start ""{#AppServiceName}"""; Flags: runhidden; BeforeInstall: CreateService; StatusMsg: "Starting {#AppName} service..."
7474
;Firewall
75-
Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} In"" program=""{app}\Python3\python.exe"" dir=in action=allow enable=yes"; Flags: runhidden;
76-
Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} Out"" program=""{app}\Python3\python.exe"" dir=out action=allow enable=yes"; Flags: runhidden;
75+
Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} In"" program=""{app}\Python3\tools\python.exe"" dir=in action=allow enable=yes"; Flags: runhidden;
76+
Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} Out"" program=""{app}\Python3\tools\python.exe"" dir=out action=allow enable=yes"; Flags: runhidden;
7777
;Open
7878
Filename: "http://localhost:{code:GetWebPort}/"; Flags: postinstall shellexec; Description: "Open {#AppName} in browser"
7979

@@ -350,7 +350,7 @@ begin
350350
OldProgressString := WizardForm.StatusLabel.Caption;
351351
WizardForm.StatusLabel.Caption := ExpandConstant('Installing {#AppName} service...')
352352
353-
Exec(Nssm, ExpandConstant('install "{#AppServiceName}" "{app}\Python3\python.exe" """{app}\{#AppName}\SickChill.py""" --nolaunch --port='+GetWebPort('')+' --datadir="""{app}\Data"""'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode)
353+
Exec(Nssm, ExpandConstant('install "{#AppServiceName}" "{app}\Python3\tools\python.exe" """{app}\{#AppName}\SickChill.py""" --nolaunch --port='+GetWebPort('')+' --datadir="""{app}\Data"""'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode)
354354
Exec(Nssm, ExpandConstant('set "{#AppServiceName}" AppDirectory "{app}\Data"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode)
355355
Exec(Nssm, ExpandConstant('set "{#AppServiceName}" Description "{#AppServiceDescription}"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode)
356356
Exec(Nssm, ExpandConstant('set "{#AppServiceName}" AppStopMethodSkip 6'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode)
@@ -392,7 +392,7 @@ procedure CleanPython();
392392
var
393393
PythonPath: String;
394394
begin
395-
PythonPath := ExpandConstant('{app}\Python3')
395+
PythonPath := ExpandConstant('{app}\Python3\tools')
396396
397397
DelTree(PythonPath + '\*.msi', False, True, False)
398398
DelTree(PythonPath + '\Doc', True, True, True)
@@ -437,9 +437,9 @@ begin
437437
438438
TargetFolder.CopyHere(ZipFile.Items, SHCONTCH_NOPROGRESSBOX or SHCONTCH_RESPONDYESTOALL);
439439
440-
PythonPTHFile := ExpandConstant('{app}\Python3\python38._pth');
441-
SaveStringToFile(PythonPTHFile, #13#10 + '..\SickChill' + #13#10, True);
442-
SaveStringToFile(PythonPTHFile, #13#10 + 'import site' + #13#10, True);
440+
; PythonPTHFile := ExpandConstant('{app}\Python3\python38._pth');
441+
; SaveStringToFile(PythonPTHFile, #13#10 + '..\SickChill' + #13#10, True);
442+
; SaveStringToFile(PythonPTHFile, #13#10 + 'import site' + #13#10, True);
443443
444444
CleanPython()
445445
InstallDepPage.SetProgress(InstallDepPage.ProgressBar.Position+1, InstallDepPage.ProgressBar.Max)

seed.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ Version=10009
33
DownloadUrl=https://github.com/SickChill/windows-sickchill
44

55
[Python.x86]
6-
url=https://www.python.org/ftp/python/3.8.5/python-3.8.5-embed-win32.zip
7-
size=7305731
8-
sha1=080728ee56fc64f65086e2a293a8982a22a910ce
6+
url=https://www.nuget.org/api/v2/package/python/3.8.10
7+
size=14219645
8+
sha1=6b67898b2b22d61c0a6b42aa46b10cb4210446d7
99

1010
[Python.x64]
11-
url=https://www.python.org/ftp/python/3.8.5/python-3.8.5-embed-amd64.zip
12-
size=8168581
13-
sha1=3cd35dc8bf94df27df93df2ba775665a35d4c9ec
11+
url=https://www.nuget.org/api/v2/package/python/3.8.10
12+
size=14219645
13+
sha1=6b67898b2b22d61c0a6b42aa46b10cb4210446d7
1414

1515
[Git.x86]
1616
url=https://github.com/git-for-windows/git/releases/download/v2.12.2.windows.1/PortableGit-2.12.2-32-bit.7z.exe

0 commit comments

Comments
 (0)