Compare commits
5 Commits
f1c4c83977
...
c2e59b3601
Author | SHA1 | Date |
---|---|---|
Alessandro Mauri | c2e59b3601 | 1 year ago |
Alessandro Mauri | 6cd644c0e9 | 1 year ago |
Alessandro Mauri | a1b7e46200 | 1 year ago |
Alessandro Mauri | afdd3238ed | 1 year ago |
Alessandro Mauri | 893d791e05 | 1 year ago |
@ -0,0 +1,7 @@ |
|||||||
|
* |
||||||
|
!.gitignore |
||||||
|
!Floorp.yml |
||||||
|
!Floorp.desktop |
||||||
|
!package.sh |
||||||
|
!AppRun |
||||||
|
!README |
@ -0,0 +1,20 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
# Firefox specific environment variables |
||||||
|
# https://github.com/AppImage/pkg2appimage/commit/c9b09eb557b6b0b4d914ecb82998148f38880d1d |
||||||
|
export SNAP_NAME="floorp" |
||||||
|
export MOZ_LEGACY_PROFILES=1 |
||||||
|
|
||||||
|
# Find the AppDir. It is the directory that contains AppRun. |
||||||
|
# This assumes that this script resides inside the AppDir or a subdirectory. |
||||||
|
# If this script is run inside an AppImage, then the AppImage runtime likely has already set $APPDIR |
||||||
|
if [ -z "$APPDIR" ] ; then |
||||||
|
HERE="$(dirname "$(readlink -f "${0}")")" |
||||||
|
export APPDIR="$HERE" |
||||||
|
fi |
||||||
|
|
||||||
|
#export PATH="$APPDIR/usr/bin:$PATH" |
||||||
|
#export XDG_DATA_DIRS="$APPDIR/share/:$XDG_DATA_DIRS" |
||||||
|
#export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH" |
||||||
|
|
||||||
|
"$APPDIR/floorp" "$@" |
@ -0,0 +1,8 @@ |
|||||||
|
[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 |
@ -1,50 +0,0 @@ |
|||||||
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 |
|
@ -0,0 +1,11 @@ |
|||||||
|
# Floorp AppImage builder |
||||||
|
|
||||||
|
Just run `./package.sh` and watch floorp get packaged into a neat AppImage |
||||||
|
|
||||||
|
|
||||||
|
## TODO: |
||||||
|
|
||||||
|
- Automatically download the last version |
||||||
|
- Maybe add some more libraries to make compatible with more systems |
||||||
|
- Add builds for linux-arm |
||||||
|
- Add internationalization to `Floorp.desktop` |
@ -0,0 +1,54 @@ |
|||||||
|
#!/bin/sh -ex |
||||||
|
|
||||||
|
VERSION="11.8.1" |
||||||
|
LINK="https://github.com/Floorp-Projects/Floorp/releases/download/v$VERSION/floorp-$VERSION.linux-x86_64.tar.bz2" |
||||||
|
|
||||||
|
APPDIR="Floorp.Appdir" |
||||||
|
|
||||||
|
mkdir -p build |
||||||
|
cd build || exit |
||||||
|
|
||||||
|
echo '===# Creating AppDir #===' |
||||||
|
rm -rf "$APPDIR" |
||||||
|
mkdir -p "$APPDIR" |
||||||
|
|
||||||
|
echo '===# Donwloading Archive #===' |
||||||
|
wget -nc $LINK |
||||||
|
rm -rf floorp |
||||||
|
tar xf floorp*.tar.bz2 |
||||||
|
|
||||||
|
echo '===# Copying Files to AppDir #===' |
||||||
|
# AppRun |
||||||
|
cp ../AppRun "$APPDIR" |
||||||
|
chmod a+x "$APPDIR"/AppRun |
||||||
|
|
||||||
|
# Desktop Entry |
||||||
|
cp ../Floorp.desktop "$APPDIR" |
||||||
|
|
||||||
|
# AppImage Icons |
||||||
|
find floorp -name default128.png -exec cp {} "$APPDIR"/floorp.png ';' |
||||||
|
ln -srfv "$APPDIR"/floorp.png "$APPDIR"/.DirIcon |
||||||
|
|
||||||
|
# Other Icons |
||||||
|
mkdir -p "$APPDIR"/usr/share/icons/hicolor/16x16/apps |
||||||
|
mkdir -p "$APPDIR"/usr/share/icons/hicolor/32x32/apps |
||||||
|
mkdir -p "$APPDIR"/usr/share/icons/hicolor/48x48/apps |
||||||
|
mkdir -p "$APPDIR"/usr/share/icons/hicolor/64x64/apps |
||||||
|
mkdir -p "$APPDIR"/usr/share/icons/hicolor/128x128/apps |
||||||
|
|
||||||
|
find floorp -name default16.png -exec cp {} "$APPDIR"/usr/share/icons/hicolor/16x16/apps/floorp.png ';' |
||||||
|
find floorp -name default32.png -exec cp {} "$APPDIR"/usr/share/icons/hicolor/32x32/apps/floorp.png ';' |
||||||
|
find floorp -name default48.png -exec cp {} "$APPDIR"/usr/share/icons/hicolor/48x48/apps/floorp.png ';' |
||||||
|
find floorp -name default64.png -exec cp {} "$APPDIR"/usr/share/icons/hicolor/64x64/apps/floorp.png ';' |
||||||
|
find floorp -name default128.png -exec cp {} "$APPDIR"/usr/share/icons/hicolor/128x128/apps/floorp.png ';' |
||||||
|
|
||||||
|
# Binaries |
||||||
|
cp -r floorp/* "$APPDIR" |
||||||
|
|
||||||
|
echo '===# Getting Appimagetool #===' |
||||||
|
wget -nc "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$(uname -m).AppImage" -O appimagetool || true |
||||||
|
chmod +x appimagetool |
||||||
|
|
||||||
|
echo '===# Generating AppImage #===' |
||||||
|
./appimagetool --no-appstream --comp gzip "$APPDIR" "Floorp-$VERSION-x86_64.AppImage" |
||||||
|
chmod +x "Floorp-$VERSION-x86_64.AppImage" |
Loading…
Reference in new issue