generated from datalad/datalad-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #430 from christian-monch/issue-425-non-admin-inst…
…aller Add a gooey-only installer that can be installed without admin privileges
- Loading branch information
Showing
7 changed files
with
68 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Section "Python 3.9" | ||
StrCpy $INSTDIR "$LOCALAPPDATA\datalad.org\datalad-gooey" | ||
SetOutPath "$INSTDIR\python39" | ||
File /r "sources\python39\*.*" | ||
SectionEnd | ||
|
||
Section "Datalad-Gooey" | ||
StrCpy $INSTDIR "$LOCALAPPDATA\datalad.org\datalad-gooey" | ||
SetOutPath "$GOOEYTEMP" | ||
# TODO: delete wheelhouse and dist | ||
File /r "sources\wheelhouse" | ||
File /r "sources\dist" | ||
ExecWait "powershell $INSTDIR\python39\python -m pip install --no-index --find-links $GOOEYTEMP\wheelhouse (Get-Item $GOOEYTEMP\dist\datalad_gooey*-py3-none-any.whl)" | ||
SetOutPath "$INSTDIR" | ||
File /r "sources\datalad.ico" | ||
SetOutPath "$INSTDIR\python39\Scripts" | ||
File /r "sources\run_gooey.ps1" | ||
CreateShortCut /NoWorkingDir "$DESKTOP\Datalad Gooey.lnk" "powershell" "$INSTDIR\python39\Scripts\run_gooey.ps1" "$INSTDIR\datalad.ico" | ||
SectionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Var GOOEYTEMP | ||
|
||
Section "Initialize" | ||
StrCpy $GOOEYTEMP "$TEMP\datalad-gooey-installer-Wlkfd983e" | ||
RMDir /r "$GOOEYTEMP" | ||
SectionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tools/installer_building/windows-installer-gooey-only-amd64.nsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Name "Datalad Gooey (without git and git-annex)" | ||
|
||
Outfile "datalad-gooey-installer-gooey-only-amd64.exe" | ||
|
||
RequestExecutionLevel user | ||
|
||
!include installer-init.nsi | ||
|
||
!include installer-gooey.nsi |