diff options
| author | Jefferson González <jgmdev@gmail.com> | 2025-06-09 23:59:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 23:59:53 -0400 |
| commit | 7c8fc2da5a465ded3404cc4d8cd60d5e7fe8446d (patch) | |
| tree | 1777d96f0e50281ccfdaf2205f280b1304ea2d5a /scripts | |
| parent | 63bbd58e5a2ad6b57637f7134c1663ef9a1155e5 (diff) | |
| download | pragtical-7c8fc2da5a465ded3404cc4d8cd60d5e7fe8446d.tar.gz pragtical-7c8fc2da5a465ded3404cc4d8cd60d5e7fe8446d.zip | |
Include 'user' directory on portable installs (#250)
This makes portable builds truly portable since user settings
will be stored on current pragtical location.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/innosetup/innosetup.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/innosetup/innosetup.sh b/scripts/innosetup/innosetup.sh index 20649034..d80aa4a9 100644 --- a/scripts/innosetup/innosetup.sh +++ b/scripts/innosetup/innosetup.sh @@ -80,10 +80,16 @@ main() { exit 1 fi - output="Pragtical${version}-${arch_file}-setup" + # remove portable user settings directory since this is a fixed install + mv "pragtical/user" . + # generate setup + output="Pragtical${version}-${arch_file}-setup" "/c/Program Files (x86)/Inno Setup 6/ISCC.exe" -dARCH=$arch //F"${output}" "${build_dir}/scripts/innosetup.iss" pushd "${build_dir}/scripts"; mv Pragtical*.exe "./../../"; popd + + # recreate user settings directory after generating setup + mv user "pragtical/" } main "$@" |
