mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
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
33 lines
952 B
Bash
Executable File
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
|