build: package Linux tray runtime
This commit is contained in:
parent
d8a4213569
commit
8e3dedf0c5
|
|
@ -3,7 +3,7 @@ Version: @VERSION@
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: libwebkit2gtk-4.1-0, libgtk-3-0t64 | libgtk-3-0
|
Depends: libwebkit2gtk-4.1-0, libgtk-3-0t64 | libgtk-3-0, libayatana-appindicator3-1
|
||||||
Maintainer: Verstak contributors <dev@verstak.app>
|
Maintainer: Verstak contributors <dev@verstak.app>
|
||||||
Homepage: https://github.com/mirivlad/verstak
|
Homepage: https://github.com/mirivlad/verstak
|
||||||
Description: Local-first workspace
|
Description: Local-first workspace
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,15 @@ if ! command -v npm &>/dev/null; then
|
||||||
fi
|
fi
|
||||||
echo " ✅ npm $(npm --version)"
|
echo " ✅ npm $(npm --version)"
|
||||||
|
|
||||||
|
if [[ "$(go env GOOS)" == "linux" ]]; then
|
||||||
|
if ! command -v pkg-config &>/dev/null || ! pkg-config --exists ayatana-appindicator3-0.1; then
|
||||||
|
echo " ❌ native tray development files are missing"
|
||||||
|
echo " Debian/Ubuntu: sudo apt install libayatana-appindicator3-dev"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo " ✅ ayatana-appindicator3 $(pkg-config --modversion ayatana-appindicator3-0.1)"
|
||||||
|
fi
|
||||||
|
|
||||||
# ── Frontend (build first — Go //go:embed needs frontend/dist/) ──
|
# ── Frontend (build first — Go //go:embed needs frontend/dist/) ──
|
||||||
echo ""
|
echo ""
|
||||||
echo "[frontend]"
|
echo "[frontend]"
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,11 @@ while IFS= read -r candidate; do
|
||||||
done < "$APPDIR/.elf-queue"
|
done < "$APPDIR/.elf-queue"
|
||||||
rm -f "$APPDIR/.elf-queue"
|
rm -f "$APPDIR/.elf-queue"
|
||||||
|
|
||||||
|
if ! compgen -G "$APPDIR/usr/lib/libayatana-appindicator3.so.*" >/dev/null; then
|
||||||
|
echo "native tray runtime library was not bundled" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v glib-compile-schemas >/dev/null; then
|
if command -v glib-compile-schemas >/dev/null; then
|
||||||
glib-compile-schemas "$APPDIR/usr/share/glib-2.0/schemas"
|
glib-compile-schemas "$APPDIR/usr/share/glib-2.0/schemas"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,11 @@ grep -Fq 'dpkg-deb' "$ROOT/scripts/package-deb.sh"
|
||||||
grep -Fq -- '--build' "$ROOT/scripts/package-deb.sh"
|
grep -Fq -- '--build' "$ROOT/scripts/package-deb.sh"
|
||||||
grep -Fq 'packaging/deb/control' "$ROOT/scripts/package-deb.sh"
|
grep -Fq 'packaging/deb/control' "$ROOT/scripts/package-deb.sh"
|
||||||
grep -Fq 'libwebkit2gtk-4.1-0' "$ROOT/packaging/deb/control"
|
grep -Fq 'libwebkit2gtk-4.1-0' "$ROOT/packaging/deb/control"
|
||||||
|
grep -Fq 'libayatana-appindicator3-1' "$ROOT/packaging/deb/control"
|
||||||
grep -Fq 'appimagetool' "$ROOT/scripts/package-appimage.sh"
|
grep -Fq 'appimagetool' "$ROOT/scripts/package-appimage.sh"
|
||||||
grep -Fq 'WebKitWebProcess' "$ROOT/scripts/package-appimage.sh"
|
grep -Fq 'WebKitWebProcess' "$ROOT/scripts/package-appimage.sh"
|
||||||
|
grep -Fq 'libayatana-appindicator3.so.' "$ROOT/scripts/package-appimage.sh"
|
||||||
|
grep -Fq 'ayatana-appindicator3-0.1' "$ROOT/scripts/build.sh"
|
||||||
if grep -Fq 'FixedVersionRuntime' "$ROOT/scripts/package-windows-portable.sh"; then
|
if grep -Fq 'FixedVersionRuntime' "$ROOT/scripts/package-windows-portable.sh"; then
|
||||||
echo "Windows portable archive must not bundle Fixed Version WebView2" >&2
|
echo "Windows portable archive must not bundle Fixed Version WebView2" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue