fix: remove icon from appimage
This commit is contained in:
parent
fc5960a604
commit
a347bbae4a
1 changed files with 12 additions and 11 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
|
@ -24,27 +24,28 @@ jobs:
|
||||||
- name: Install PyInstaller
|
- name: Install PyInstaller
|
||||||
run: pip install pyinstaller
|
run: pip install pyinstaller
|
||||||
|
|
||||||
- name: Build Linux executable with PyInstaller
|
- name: Create AppDir structure and files without icon
|
||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --windowed time_logix.py
|
|
||||||
mkdir -p AppDir/usr/bin
|
mkdir -p AppDir/usr/bin
|
||||||
cp dist/time_logix AppDir/usr/bin/time_logix
|
pyinstaller --onefile --windowed time_tracker.py
|
||||||
# Create AppRun File
|
cp dist/time_tracker AppDir/usr/bin/time_tracker
|
||||||
echo '#!/bin/bash' > AppDir/AppRun
|
# Create AppRun file
|
||||||
echo 'HERE="$(dirname "$(readlink -f "${0}")")"' >> AppDir/AppRun
|
cat <<'EOF' > AppDir/AppRun
|
||||||
echo 'exec "$HERE/usr/bin/time_logix" "$@"' >> AppDir/AppRun
|
#!/bin/bash
|
||||||
|
HERE="$(dirname "$(readlink -f "${0}")")"
|
||||||
|
exec "$HERE/usr/bin/time_tracker" "$@"
|
||||||
|
EOF
|
||||||
chmod +x AppDir/AppRun
|
chmod +x AppDir/AppRun
|
||||||
# Create desktop file
|
# Create desktop file without an icon reference
|
||||||
cat <<EOF > AppDir/time_logix.desktop
|
cat <<EOF > AppDir/time_logix.desktop
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=TimeLogix
|
Name=TimeLogix
|
||||||
Exec=time_logix
|
Exec=time_tracker
|
||||||
Icon=appicon
|
|
||||||
Comment=Time tracking app for contractors
|
Comment=Time tracking app for contractors
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Install FUSE library
|
- name: Install FUSE library
|
||||||
run: sudo apt-get update && sudo apt-get install -y libfuse2
|
run: sudo apt-get update && sudo apt-get install -y libfuse2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue