# Copyright (c) 2022 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/ - # Copy Logo/Icon - cp -v usr/bin/product_logo_256.png 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 < ./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 --use-gl=desktop --enable-experimental-web-platform-features --new-canvas-2d-api --autoplay-policy=user-gesture-required --enable-features=PageInfoAboutThisSiteMoreInfo $@ - EOF - chmod a+x ./AppRun