mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-29 14:16:26 -04:00
37 lines
1.9 KiB
Makefile
37 lines
1.9 KiB
Makefile
build: build-fe build-rs gpgui-helper
|
|
|
|
build-fe:
|
|
cd apps/gpgui-helper && pnpm install && pnpm build
|
|
|
|
build-rs:
|
|
cargo build --release --frozen -p gpclient -p gpauth -p gpservice
|
|
|
|
gpgui-helper:
|
|
cargo build --release --frozen -p gpgui-helper --features "tauri/custom-protocol"
|
|
|
|
install:
|
|
install -Dm755 target/release/gpclient $(DESTDIR)/usr/bin/gpclient
|
|
install -Dm755 target/release/gpauth $(DESTDIR)/usr/bin/gpauth
|
|
install -Dm755 target/release/gpservice $(DESTDIR)/usr/bin/gpservice
|
|
install -Dm755 target/release/gpgui-helper $(DESTDIR)/usr/bin/gpgui-helper
|
|
|
|
install -Dm644 packaging/files/usr/share/applications/gpgui.desktop $(DESTDIR)/usr/share/applications/gpgui.desktop
|
|
install -Dm644 packaging/files/usr/share/icons/hicolor/scalable/apps/gpgui.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/gpgui.svg
|
|
install -Dm644 packaging/files/usr/share/icons/hicolor/32x32/apps/gpgui.png $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/gpgui.png
|
|
install -Dm644 packaging/files/usr/share/icons/hicolor/128x128/apps/gpgui.png $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/gpgui.png
|
|
install -Dm644 packaging/files/usr/share/icons/hicolor/256x256@2/apps/gpgui.png $(DESTDIR)/usr/share/icons/hicolor/256x256@2/apps/gpgui.png
|
|
install -Dm644 packaging/files/usr/share/polkit-1/actions/com.yuezk.gpgui.policy $(DESTDIR)/usr/share/polkit-1/actions/com.yuezk.gpgui.policy
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/usr/bin/gpclient
|
|
rm -f $(DESTDIR)/usr/bin/gpauth
|
|
rm -f $(DESTDIR)/usr/bin/gpservice
|
|
rm -f $(DESTDIR)/usr/bin/gpgui-helper
|
|
|
|
rm -f $(DESTDIR)/usr/share/applications/gpgui.desktop
|
|
rm -f $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/gpgui.svg
|
|
rm -f $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/gpgui.png
|
|
rm -f $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/gpgui.png
|
|
rm -f $(DESTDIR)/usr/share/icons/hicolor/256x256@2/apps/gpgui.png
|
|
rm -f $(DESTDIR)/usr/share/polkit-1/actions/com.yuezk.gpgui.policy
|