mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-23 06:34:15 -04:00
157f4f9df2
* Rebrand * Revert Info.plist.in * Think, Mark!
27 lines
966 B
Bash
Executable File
27 lines
966 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
if [[ -n "${GITHUB_WORKSPACE:-}" ]]; then
|
|
cd "$GITHUB_WORKSPACE"
|
|
fi
|
|
|
|
build_dir="$PWD/build"
|
|
linuxdeploy="$build_dir/linuxdeploy-$(uname -m).AppImage"
|
|
|
|
# Get linuxdeploy
|
|
mkdir -p "$build_dir"
|
|
curl -fL "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-$(uname -m).AppImage" -o "$linuxdeploy"
|
|
chmod +x "$linuxdeploy"
|
|
|
|
# Build AppImage
|
|
mkdir -p build/appdir/usr/{bin,share/{applications,icons/hicolor}}
|
|
for install_path in build/install/*; do
|
|
[[ "$(basename "$install_path")" == *.* ]] && continue
|
|
cp -r "$install_path" build/appdir/usr/bin
|
|
done
|
|
cp -r platforms/freedesktop/{16x16,32x32,48x48,64x64,128x128,256x256,512x512,1024x1024} build/appdir/usr/share/icons/hicolor
|
|
cp platforms/freedesktop/dusklight.desktop build/appdir/usr/share/applications
|
|
|
|
cd build/install
|
|
VERSION="$DUSK_VERSION" NO_STRIP=1 "$linuxdeploy" \
|
|
-l /usr/lib/x86_64-linux-gnu/libusb-1.0.so --appdir "$build_dir/appdir" --output appimage
|