snapshot of https://github.com/ActivityWatch/activitywatch.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
Research feed publisher tests / test (push) Failing after 3s
Release / Pre-flight checks (push) Failing after 0s
Release / Research Edition — patch and packaging smoke tests (push) Has been skipped
Release / Build Qt artifacts (false, 22, ubuntu-22.04, 3.9, ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}, false, false) (push) Has been skipped
Release / Build Qt artifacts (false, 22, ubuntu-22.04, 3.9, false, false, false) (push) Has been skipped
Release / Build Qt artifacts (manylinux_2_28 — glibc 2.28 ABI floor) (22, 3.9) (push) Has been skipped
Release / Generate release notes (push) Has been skipped
Release / Create dev release tag (push) Has been skipped
CodeQL / Analyze (javascript) (push) Failing after 1s
CodeQL / Analyze (python) (push) Failing after 1s
Release / Build Qt artifacts (false, 22, windows-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, macos-15-intel, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, macos-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, ubuntu-24.04, 3.9, ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, ubuntu-24.04, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, ubuntu-24.04-arm, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, windows-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Build Qt artifacts (false, 22, macos-15-intel, 3.9, false, false, false) (push) Has been cancelled
Release / Build Qt artifacts (false, 22, macos-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Publish draft release (push) Has been cancelled
Some checks failed
Research feed publisher tests / test (push) Failing after 3s
Release / Pre-flight checks (push) Failing after 0s
Release / Research Edition — patch and packaging smoke tests (push) Has been skipped
Release / Build Qt artifacts (false, 22, ubuntu-22.04, 3.9, ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}, false, false) (push) Has been skipped
Release / Build Qt artifacts (false, 22, ubuntu-22.04, 3.9, false, false, false) (push) Has been skipped
Release / Build Qt artifacts (manylinux_2_28 — glibc 2.28 ABI floor) (22, 3.9) (push) Has been skipped
Release / Generate release notes (push) Has been skipped
Release / Create dev release tag (push) Has been skipped
CodeQL / Analyze (javascript) (push) Failing after 1s
CodeQL / Analyze (python) (push) Failing after 1s
Release / Build Qt artifacts (false, 22, windows-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, macos-15-intel, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, macos-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, ubuntu-24.04, 3.9, ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, ubuntu-24.04, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, ubuntu-24.04-arm, 3.9, false, false, false) (push) Has been cancelled
Release / Build Tauri artifacts (false, 22, windows-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Build Qt artifacts (false, 22, macos-15-intel, 3.9, false, false, false) (push) Has been cancelled
Release / Build Qt artifacts (false, 22, macos-latest, 3.9, false, false, false) (push) Has been cancelled
Release / Publish draft release (push) Has been cancelled
This commit is contained in:
61
scripts/package/package-deb.sh
vendored
Executable file
61
scripts/package/package-deb.sh
vendored
Executable file
@@ -0,0 +1,61 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Fail fast
|
||||
set -e
|
||||
# Verbose commands for CI verification
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
VERSION="$("$SCRIPT_DIR/getversion.sh")"
|
||||
# Strip the research tag suffix: the edition gets its own filename token, and
|
||||
# a bare "-research" in the Debian version field would parse as a revision.
|
||||
VERSION="${VERSION%-research}"
|
||||
VERSION_NUM="$(echo "$VERSION" | sed -e 's/^v//')"
|
||||
EDITION=""
|
||||
if [[ $AW_RESEARCH_EDITION == "true" ]]; then
|
||||
EDITION="-research"
|
||||
fi
|
||||
echo "Version (with v): $VERSION"
|
||||
echo "Version (without v): $VERSION_NUM"
|
||||
PKGDIR="activitywatch_$VERSION_NUM"
|
||||
|
||||
# Package tools
|
||||
sudo apt-get install sed jdupes wget
|
||||
|
||||
if [ -d "PKGDIR" ]; then
|
||||
sudo rm -rf $PKGDIR
|
||||
fi
|
||||
|
||||
# .deb meta files
|
||||
mkdir -p $PKGDIR/DEBIAN
|
||||
# activitywatch's install location
|
||||
mkdir -p $PKGDIR/opt
|
||||
# Allows aw-qt to autostart.
|
||||
mkdir -p $PKGDIR/etc/xdg/autostart
|
||||
# Allows users to manually start aw-qt from their start menu.
|
||||
mkdir -p $PKGDIR/usr/share/applications
|
||||
|
||||
# While storing the control file in a variable here, dumping it in a file is so unnecessarily
|
||||
# complicated that it's easier to just dump move and sed.
|
||||
cp ./scripts/package/deb/control $PKGDIR/DEBIAN/control
|
||||
sed -i "s/SCRIPT_VERSION_HERE/${VERSION_NUM}/" $PKGDIR/DEBIAN/control
|
||||
|
||||
# Verify the file content
|
||||
cat $PKGDIR/DEBIAN/control
|
||||
# The entire opt directory (should) consist of dist/activitywatch/*
|
||||
|
||||
cp -r dist/activitywatch/ $PKGDIR/opt/
|
||||
|
||||
# Hard link duplicated libraries
|
||||
# (I have no idea what this is for)
|
||||
jdupes -L -r -S -Xsize-:1K $PKGDIR/opt/
|
||||
|
||||
sudo chown -R root:root $PKGDIR
|
||||
|
||||
# Prepare the .desktop file
|
||||
sudo sed -i 's!Exec=aw-qt!Exec=/opt/activitywatch/aw-qt!' $PKGDIR/opt/activitywatch/aw-qt.desktop
|
||||
sudo cp $PKGDIR/opt/activitywatch/aw-qt.desktop $PKGDIR/etc/xdg/autostart/
|
||||
sudo cp $PKGDIR/opt/activitywatch/aw-qt.desktop $PKGDIR/usr/share/applications/
|
||||
|
||||
dpkg-deb --build $PKGDIR
|
||||
sudo mv activitywatch_${VERSION_NUM}.deb dist/activitywatch${EDITION}-${VERSION}-linux-x86_64.deb
|
||||
Reference in New Issue
Block a user