Files
firezone/scripts/tests/gui-client-install-linux-deb.sh
Thomas Eizinger 1bdba3601a feat(gui-client): rename IPC service to Tunnel service (#9154)
The name IPC service is not very descriptive. By nature of being
separate processes, we need to use IPC to communicate between them. The
important thing is that the service process has control over the tunnel.
Therefore, we rename everything to "Tunnel service".

The only part that is not changed are historic changelog entries.

Resolves: #9048
2025-05-19 09:52:06 +00:00

33 lines
952 B
Bash
Executable File

#!/usr/bin/env bash
#
# Runs from `rust/gui-client` or `rust/tauri-client`
set -euox pipefail
SERVICE_NAME=firezone-client-tunnel
function debug_exit() {
systemctl status "$SERVICE_NAME"
exit 1
}
# Test the deb package, since this script is the easiest place to get a release build
DEB_PATH=$(realpath "$BINARY_DEST_PATH.deb")
sudo apt-get install "$DEB_PATH"
# Debug-print the files. The icons and both binaries should be in here
dpkg --listfiles firezone-client-gui
# Print the deps
dpkg --info "$DEB_PATH"
# Confirm that both binaries and at least one icon were installed
which firezone-client-gui firezone-client-tunnel
stat /usr/share/icons/hicolor/512x512/apps/firezone-client-gui.png
# Make sure the binary got built, packaged, and installed, and at least
# knows its own name
firezone-client-gui --help | grep "Usage: firezone-client-gui"
# Make sure the Tunnel service is running
systemctl status "$SERVICE_NAME" || debug_exit