mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 11:27:32 -03:00
76 lines
2.9 KiB
YAML
76 lines
2.9 KiB
YAML
# Copyright (c) 2024 Alex313031
|
|
# Official Thorium builds can be downloaded from https://github.com/Alex313031/thorium/releases
|
|
app: Thorium
|
|
appId: "org.chromium.Thorium"
|
|
|
|
compression: minimum
|
|
|
|
ingredients:
|
|
script:
|
|
- echo $VERSION
|
|
|
|
script:
|
|
- # Echo Version
|
|
- echo $VERSION
|
|
- # Move/Copy Files
|
|
- cp -v ../../temp/libffmpeg.so usr/lib/
|
|
- cp -v -r ../../temp/* usr/bin/
|
|
- mkdir -v -p usr/share/icons/hicolor/16x16/apps/
|
|
- # Copy Logo/Icon
|
|
- cp -v usr/bin/product_logo_256.png thorium.png
|
|
- cp -v usr/bin/product_logo_16.png usr/share/icons/hicolor/16x16/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_22.png usr/share/icons/hicolor/22x22/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_24.png usr/share/icons/hicolor/24x24/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_32.png usr/share/icons/hicolor/32x32/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_48.png usr/share/icons/hicolor/48x48/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_64.png usr/share/icons/hicolor/64x64/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_128.png usr/share/icons/hicolor/128x128/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_256.png usr/share/icons/hicolor/256x256/apps/thorium.png
|
|
- cp -v usr/bin/product_logo_512.png usr/share/icons/hicolor/512x512/apps/thorium.png
|
|
- # Set Version
|
|
- ./usr/bin/thorium --version | cut -d ' ' -f2 > ../VERSION
|
|
- # Remove redundant libffmpeg.so
|
|
- rm -v usr/bin/libffmpeg.so
|
|
- # Add Desktop file
|
|
- cat > thorium-browser.desktop <<EOF
|
|
- [Desktop Entry]
|
|
- Version=1.0
|
|
- Name=Thorium Browser
|
|
- GenericName=Web Browser
|
|
- Comment=Access the Internet
|
|
- Exec=thorium --no-default-browser-check %U
|
|
- StartupWMClass=thorium
|
|
- Keywords=browser
|
|
- StartupNotify=true
|
|
- Terminal=false
|
|
- X-MultipleArgs=True
|
|
- Icon=thorium
|
|
- Type=Application
|
|
- Categories=Network;WebBrowser;
|
|
- MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
|
|
- Actions=new-window;new-private-window;content-shell;safe-mode;dark-mode;
|
|
- [Desktop Action new-window]
|
|
- Name=New Window
|
|
- Exec=thorium
|
|
- [Desktop Action content-shell]
|
|
- Name=Open Thorium Shell
|
|
- Exec=thorium-shell %U
|
|
- [Desktop Action safe-mode]
|
|
- Name=Open in Safe Mode
|
|
- Exec=thorium --no-experiments %U
|
|
- [Desktop Action dark-mode]
|
|
- Name=Open in Dark Mode
|
|
- Exec=thorium --force-dark-mode --no-default-browser-check %U
|
|
- [Desktop Action new-private-window]
|
|
- Name=New Incognito Window
|
|
- Exec=thorium --incognito --no-default-browser-check %U
|
|
- EOF
|
|
- chmod a+x ./thorium-browser.desktop
|
|
- # ADD AppRun
|
|
- cat > ./AppRun <<\EOF
|
|
- #!/bin/sh
|
|
- HERE=$(dirname $(readlink -f "${0}"))
|
|
- export LD_LIBRARY_PATH="${HERE}"/usr/lib:$PATH
|
|
- "${HERE}"/usr/bin/thorium --no-default-browser-check $@
|
|
- EOF
|
|
- chmod a+x ./AppRun
|