-
Notifications
You must be signed in to change notification settings - Fork 0
/
firefox.py
93 lines (66 loc) · 2.12 KB
/
firefox.py
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Name="firefox"
Version="auto1"
Maintainer="Can202"
Contact="[email protected]"
Arch="both"
Time="short"
License="https://www.mozilla.org/en-US/foundation/licensing/"
idurDepends=["idur-pkg", "idur-exec"]
Conflict=["firefox"]
Description="""
Firefox is a web browser
this version is with automatic updates
"""
Install64="""
ARCH="x86_64"
VERSION="92.0.1"
idur-pkg tmp firefox
cd $(idur-pkg dp firefox)
idur-pkg download https://download-installer.cdn.mozilla.net/pub/firefox/releases/$VERSION/linux-$ARCH/en-US/firefox-$VERSION.tar.bz2
idur-pkg uncompress firefox-92.0.1.tar.bz2
idur-pkg copy firefox /opt/idur/share/program/firefox
idur-pkg mod /opt/idur/share/program/firefox
echo "#!/bin/bash
cd /opt/idur/share/program/firefox
arg="\$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9"
./firefox $arg
" > /opt/idur/bin/firefox
idur-pkg exec /opt/idur/bin/firefox
echo "[Desktop Entry]
Name=Firefox
Exec=idur-exec firefox
Type=Application
Categories=Network
Icon=/opt/idur/share/program/firefox/browser/chrome/icons/default/default128.png" > /usr/share/applications/id-firefox.desktop
idur-pkg exec /usr/share/applications/id-firefox.desktop
idur-pkg rm-tmp firefox
"""
Install32="""
ARCH="i686"
VERSION="92.0.1"
idur-pkg tmp firefox
cd $(idur-pkg dp firefox)
idur-pkg download https://download-installer.cdn.mozilla.net/pub/firefox/releases/$VERSION/linux-$ARCH/en-US/firefox-$VERSION.tar.bz2
idur-pkg uncompress firefox-92.0.1.tar.bz2
idur-pkg copy firefox /opt/idur/share/program/firefox
idur-pkg mod /opt/idur/share/program/firefox
echo "#!/bin/bash
cd /opt/idur/share/program/firefox
arg="\$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9"
./firefox $arg
" > /opt/idur/bin/firefox
idur-pkg exec /opt/idur/bin/firefox
echo "[Desktop Entry]
Name=Firefox
Exec=idur-exec firefox
Type=Application
Categories=Network
Icon=/opt/idur/share/program/firefox/browser/chrome/icons/default/default128.png" > /usr/share/applications/id-firefox.desktop
idur-pkg exec /usr/share/applications/id-firefox.desktop
idur-pkg rm-tmp firefox
"""
Remove="""
idur-pkg rm /opt/idur/bin/firefox
idur-pkg rm /opt/idur/share/program/firefox
idur-pkg rm /usr/share/applications/id-firefox.desktop
"""