Skip to content

Commit

Permalink
fixed issues with PyInstaller multipackaging by moving modules t… (Ac…
Browse files Browse the repository at this point in the history
…tivityWatch#311)

fixed issues with PyInstaller multipackaging by moving modules to subdirs
  • Loading branch information
ErikBjare authored Nov 13, 2019
2 parents adc44f7 + 0cdffeb commit 3dd4ec2
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -129,13 +129,13 @@ package:
mkdir -p dist/activitywatch
#
make --directory=aw-watcher-afk package
cp -r aw-watcher-afk/dist/aw-watcher-afk/. dist/activitywatch
cp -r aw-watcher-afk/dist/aw-watcher-afk dist/activitywatch
#
make --directory=aw-watcher-window package
cp -r aw-watcher-window/dist/aw-watcher-window/. dist/activitywatch
cp -r aw-watcher-window/dist/aw-watcher-window dist/activitywatch
#
make --directory=aw-server package
cp -r aw-server/dist/aw-server/. dist/activitywatch
cp -r aw-server/dist/aw-server dist/activitywatch
#
make --directory=aw-qt package
cp -r aw-qt/dist/aw-qt/. dist/activitywatch
2 changes: 1 addition & 1 deletion aw-qt
6 changes: 5 additions & 1 deletion scripts/package/activitywatch-setup.iss
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "ActivityWatch"
#define MyAppVersion "v0.8.0b9"
#define MyAppVersion GetEnv('AW_VERSION')
#define MyAppPublisher "ActivityWatch Contributors"
#define MyAppURL "https://activitywatch.net/"
#define MyAppExeName "aw-qt.exe"
@@ -54,3 +54,7 @@ Name: "{userstartup}\(#MyAppName)"; Filename: "{app}\{#MyAppExeName}"; Tasks: St
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

; Removes the previously installed version before installing the new one
; NOTE: Doesn't work? And also discouraged by the docs
;[InstallDelete]
;Type: filesandordirs; Name: "{app}\"
2 changes: 1 addition & 1 deletion scripts/package/package-all.sh
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ function build_setup() {

choco install -y innosetup

"/c/Program Files (x86)/Inno Setup 6/iscc.exe" scripts/package/activitywatch-setup.iss
env AW_VERSION=$version "/c/Program Files (x86)/Inno Setup 6/iscc.exe" scripts/package/activitywatch-setup.iss
mv dist/activitywatch-setup.exe dist/$filename
echo "Setup built!"
}

0 comments on commit 3dd4ec2

Please sign in to comment.