Skip to content

Commit 5fbb51e

Browse files
committed
updates
1 parent 2e582f8 commit 5fbb51e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ ifeq ($(SKIP_SERVER_RUST),true)
2020
SUBMODULES := $(filter-out aw-server-rust,$(SUBMODULES))
2121
endif
2222

23+
# Build in release mode by default, unless RELEASE=false
24+
ifeq ($(RELEASE), false)
25+
targetdir := debug
26+
else
27+
targetdir := release
28+
endif
29+
2330

2431
#Include awatcher on linux
2532
ifeq ($(OS),Linux)
@@ -159,7 +166,7 @@ package:
159166
done
160167
ifeq ($(AW_SYNC_ONLY),true)
161168
mkdir -p dist/activitywatch/aw-server-rust
162-
cp aw-server-rust/target/release/aw-sync dist/activitywatch/aw-server-rust/aw-sync
169+
cp aw-server-rust/target/$(targetdir)/aw-sync dist/activitywatch/aw-server-rust/aw-sync
163170
endif
164171
# Remove problem-causing binaries
165172
rm -f dist/activitywatch/libdrm.so.2 # see: https://github.com/ActivityWatch/activitywatch/issues/161

scripts/package/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Run move-to-aw-modules.sh to copy all modules except aw-tauri to ~/aw-modules/. Aw-tauri (replaces aw-qt), will use this directory to discover new modules. You can add your own modules and scripts to this directory. The modules should start with the aw- prefix.
1+
Run move-to-aw-modules.sh to copy all modules except aw-tauri to ~/aw-modules/. Aw-tauri (replaces aw-qt), will use this directory to discover new modules. You can add your own modules and scripts to this directory. The modules should start with the aw- prefix and should not have an extension i.e `.sh`.
22

33
In the aw-tauri folder there is appimage, rpm and deb binaries.Choose the appropriate one for your distro, if in doubt use the appimage works on most linux systems. If you decide on the appimage copy it a permanent folder like ~/bin or /usr/local/bin, since autostart relies on the appimage being in the same location each time.

0 commit comments

Comments
 (0)