You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.6 KiB
51 lines
2.6 KiB
10 months ago
|
app: Floorp
|
||
|
|
||
|
ingredients:
|
||
|
script:
|
||
|
- VER="11.8.1"
|
||
|
- LNK="https://github.com/Floorp-Projects/Floorp/releases/download/v$VER/floorp-$VER.linux-x86_64.tar.bz2"
|
||
|
- wget $LNK
|
||
|
- tar xf floorp*.tar.bz2
|
||
|
|
||
|
script:
|
||
|
- # Copy binaries and icons
|
||
|
- cp -r ../floorp/* usr/bin/
|
||
|
- find . -name mozicon128.png -exec cp {} floorp.png \;
|
||
|
- find . -name default128.png -exec cp {} floorp.png \;
|
||
|
- find . -name mozicon128.png -exec cp {} usr/share/icons/hicolor/128x128/apps/floorp.png \;
|
||
|
- find . -name mozicon22.png -exec cp {} usr/share/icons/hicolor/22x22/apps/floorp.png \;
|
||
|
- find . -name mozicon24.png -exec cp {} usr/share/icons/hicolor/24x24/apps/floorp.png \;
|
||
|
- find . -name mozicon256.png -exec cp {} usr/share/icons/hicolor/256x256/apps/floorp.png \;
|
||
|
- find . -name mozicon32.png -exec cp {} sr/share/icons/hicolor/32x32/apps/floorp.png \;
|
||
|
- find . -name mozicon48.png -exec cp {} usr/share/icons/hicolor/48x48/apps/floorp.png \;
|
||
|
- find . -name mozicon512.png -exec cp {} usr/share/icons/hicolor/512x512/apps/floorp.png \;
|
||
|
- find . -name mozicon64.png -exec cp {} usr/share/icons/hicolor/64x64/apps/floorp.png \;
|
||
|
- find . -name default128.png -exec cp {} usr/share/icons/hicolor/128x128/apps/floorp.png \;
|
||
|
- find . -name default22.png -exec cp {} usr/share/icons/hicolor/22x22/apps/floorp.png \;
|
||
|
- find . -name default24.png -exec cp {} usr/share/icons/hicolor/24x24/apps/floorp.png \;
|
||
|
- find . -name default256.png -exec cp {} usr/share/icons/hicolor/256x256/apps/floorp.png \;
|
||
|
- find . -name default32.png -exec cp {} usr/share/icons/hicolor/32x32/apps/floorp.png \;
|
||
|
- find . -name default48.png -exec cp {} usr/share/icons/hicolor/48x48/apps/floorp.png \;
|
||
|
- find . -name default5128.png -exec cp {} usr/share/icons/hicolor/512x512/apps/floorp.png \;
|
||
|
- find . -name default64.png -exec cp {} usr/share/icons/hicolor/64x64/apps/floorp.png \;
|
||
|
- # Generate desktop file
|
||
|
- cat > floorp.desktop <<EOF
|
||
|
- [Desktop Entry]
|
||
|
- Type=Application
|
||
|
- Name=Floorp
|
||
|
- Icon=floorp
|
||
|
- Exec=floorp %u
|
||
|
- Categories=GNOME;GTK;Network;WebBrowser;
|
||
|
- MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
|
||
|
- StartupNotify=true
|
||
|
- EOF
|
||
|
- # Generate AppRun
|
||
|
- cat > AppRun <<\EOF
|
||
|
- #!/bin/bash
|
||
|
- HERE="$(dirname "$(readlink -f "${0}")")"
|
||
|
- export SNAP_NAME="floorp" # Prevent per installation profiles in ff = 67
|
||
|
- export MOZ_LEGACY_PROFILES=1 # Prevent per installation profiles in ff > 68
|
||
|
- "$HERE/usr/bin/floorp" "$@"
|
||
|
- EOF
|
||
|
- chmod a+x AppRun
|