-
-
Notifications
You must be signed in to change notification settings - Fork 148
/
Thorium.yml
76 lines (73 loc) · 2.91 KB
/
Thorium.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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