Add install script for the local user

This commit is contained in:
2026-03-22 19:44:36 -04:00
parent ad369d1570
commit 7010eeb9bf
2 changed files with 20 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ RUN sed -e 's/sudo //g' /tmp/tqsl/linux-make-appimage.sh > /tmp/tqsl/linux-appim
chmod +x /tmp/tqsl/linux-appimage.sh && \
/tmp/tqsl/linux-appimage.sh
RUN mv /tmp/tqsl/tqsl-*.AppImage /tqsl.AppImage
RUN mv /tmp/tqsl/apps/icons/key128.png /TrustedQSL.png
FROM scratch
COPY --from=builder /tqsl.AppImage /tqsl.AppImage
COPY --from=builder /TrustedQSL.png /TrustedQSL.png

18
install.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
docker buildx build --output type=local,dest=. .
chmod +x tqsl.AppImage
mkdir -p $HOME/.local/bin $HOME/.local/share/applications $HOME/.local/share/icons/tqsl-app
mv tqsl.AppImage $HOME/.local/bin/tqsl
mv TrustedQSL.png $HOME/.local/share/icons/tqsl-app/TrustedQSL.png
cat <<EOF > $HOME/.local/share/applications/tqsl.desktop
[Desktop Entry]
Categories=HamRadio;Utility
Comment=Log & Sign contacts to upload to ARRL's Logbook Of The World
Exec=$HOME/.local/bin/tqsl %F
TryExec=$HOME/.local/bin/tqsl
Icon=$HOME/.local/share/icons/tqsl-app/TrustedQSL.png
Name=TrustedQSL
StartupNotify=false
Terminal=false
Type=Application
EOF