-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunpack.sh
More file actions
105 lines (82 loc) · 6.35 KB
/
unpack.sh
File metadata and controls
105 lines (82 loc) · 6.35 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
echo "[INFO] starting update"
# 1. Aktualizacja głównej struktury plików
sudo rm -rf /usr/share/HackerOS/
sudo mv /tmp/HackerOS-Updates/HackerOS/ /usr/share/HackerOS/
# 2. Uprawnienia dla skryptów systemowych
# Upewniamy się, że katalog istnieje zanim do niego wejdziemy
if [ -d "/usr/share/HackerOS/Scripts/Bin/" ]; then
cd /usr/share/HackerOS/Scripts/Bin/ || exit
sudo chmod a+x Bit-Jump.sh check_updates_notify.sh HackerOS-Games.sh HackerOS-Information.sh Proton-Updater.sh update_system.sh update-hackeros.sh unpack-xanmod.sh update-liquorix.sh
fi
if [ -d "/usr/share/HackerOS/Scripts/Steam/" ]; then
cd /usr/share/HackerOS/Scripts/Steam/ || exit
sudo chmod a+x HackerOS-Steam.sh HackerOS-Steam-Animation.sh
fi
# 3. Aplikacje HackerOS (Przeniesione do /usr/share/HackerOS/Scripts/HackerOS-Apps)
sudo mkdir -p /usr/share/HackerOS/Scripts/HackerOS-Apps
cd /usr/share/HackerOS/Scripts/HackerOS-Apps || exit
sudo rm -f HackerOS-Game-Mode.AppImage Hacker_Launcher HackerOS-Welcome HackerOS-Store Hacker-Term.AppImage
sudo curl -L -o HackerOS-Game-Mode.AppImage "https://github.com/HackerOS-Linux-System/HackerOS-Game-Mode/releases/download/v0.2/HackerOS-Game-Mode.AppImage"
sudo curl -L -o Hacker_Launcher "https://github.com/HackerOS-Linux-System/Hacker-Launcher/releases/download/v0.8/Hacker_Launcher"
sudo curl -L -o HackerOS-Welcome "https://github.com/HackerOS-Linux-System/HackerOS-Welcome/releases/download/v0.5/HackerOS-Welcome"
sudo curl -L -o Hacker-Term.AppImage "https://github.com/HackerOS-Linux-System/Hacker-Term/releases/download/v0.4/Hacker-Term.AppImage"
sudo curl -L -o HackerOS-Store "https://github.com/HackerOS-Linux-System/HackerOS-Store/releases/download/v0.5/HackerOS-Store"
sudo chmod a+x Hacker_Launcher Hacker-Term.AppImage HackerOS-Welcome HackerOS-Game-Mode.AppImage HackerOS-Store
# 4. Gry HackerOS (Przeniesione do /usr/share/HackerOS/Scripts/HackerOS-Games)
sudo mkdir -p /usr/share/HackerOS/Scripts/HackerOS-Games
cd /usr/share/HackerOS/Scripts/HackerOS-Games || exit
sudo rm -f HackerOS-Games.AppImage the-racer starblaster bit-jump.love bark-squadron.AppImage
sudo curl -L -o HackerOS-Games.AppImage "https://github.com/HackerOS-Linux-System/HackerOS-Games/releases/download/v0.6/HackerOS-Games"
sudo curl -L -o the-racer "https://github.com/HackerOS-Linux-System/HackerOS-Games/releases/download/v0.5/the-racer"
sudo curl -L -o starblaster "https://github.com/HackerOS-Linux-System/HackerOS-Games/releases/download/v0.6/starblaster"
sudo curl -L -o bit-jump.love "https://github.com/HackerOS-Linux-System/HackerOS-Games/releases/download/v0.6/bit-jump.love"
sudo curl -L -o bark-squadron.AppImage "https://github.com/HackerOS-Linux-System/HackerOS-Games/releases/download/v0.6/bark-squadron.AppImage"
sudo chmod a+x HackerOS-Games.AppImage the-racer bit-jump.love starblaster bark-squadron.AppImage
# 5. Narzędzia CLI w /usr/bin/
cd /usr/bin/ || exit
sudo rm -f hpm hacker ngt hedit a HackerOS-Steam hbuild getit chker
sudo curl -L -o hedit "https://github.com/HackerOS-Linux-System/hedit/releases/download/v0.3/hedit"
sudo curl -L -o ngt "https://github.com/HackerOS-Linux-System/ngt/releases/download/v0.3/ngt"
sudo curl -L -o hacker "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/hacker"
sudo curl -L -o hpm "https://github.com/HackerOS-Linux-System/HackerOS-Package-Manager/releases/download/v0.6/hpm"
sudo curl -L -o HackerOS-Steam "https://github.com/HackerOS-Linux-System/HackerOS-Steam/releases/download/v0.2/HackerOS-Steam"
sudo curl -L -o hbuild "https://github.com/HackerOS-Linux-System/hbuild/releases/download/v0.2/hbuild"
sudo curl -L -o a "https://github.com/HackerOS-Linux-System/a/releases/download/v0.1/a"
sudo curl -L -o getit "https://github.com/HackerOS-Linux-System/ghdir/releases/download/v0.4/getit"
sudo curl -L -o chcker "https://github.com/HackerOS-Linux-System/chker/releases/download/v0.1/chker"
sudo chmod a+x hacker hpm hedit ngt a HackerOS-Steam hbuild getit chker
# 6. Konfiguracja użytkownika ~/.hackeros (bez sudo, to pliki lokalne)
mkdir -p ~/.hackeros/hacker/
cd ~/.hackeros/hacker/ || exit
rm -f hacker-shell hacker-help hacker-select hacker-docs HackerOS-Updater update-system apt-fronted
curl -L -o hacker-shell "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/hacker-shell"
curl -L -o hacker-help "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/hacker-help"
curl -L -o hacker-select "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/hacker-select"
curl -L -o hacker-docs "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/hacker-docs"
curl -L -o HackerOS-Updater "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/HackerOS-Updater"
curl -L -o update-system "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.3/update-system"
curl -L -o apt-fronted "https://github.com/HackerOS-Linux-System/Hacker-CLI-Tool/releases/download/v2.2/apt-fronted"
chmod a+x HackerOS-Updater update-system hacker-docs hacker-help hacker-shell hacker-select apt-fronted
# 7. Hacker-Lang
mkdir -p ~/.hackeros/hacker-lang/bin
cd ~/.hackeros/hacker-lang/bin || exit
rm -f hl-compiler hl-plsa hl-runtime hl-repl hl-containers
curl -L -o hl-compiler "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hl-compiler"
curl -L -o hl-plsa "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hl-plsa"
curl -L -o hl-runtime "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hl-runtime"
curl -L -o hl-repl "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hl-repl"
curl -L -o hl-containers "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hl-containers"
chmod a+x hl-runtime hl-compiler hl-plsa hl-repl hl-containers
# 8. Binarki systemowe Hacker-Lang
cd /usr/bin/ || exit
sudo rm -f hl hlh
sudo curl -L -o hl "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hl"
sudo curl -L -o hlh "https://github.com/HackerOS-Linux-System/Hacker-Lang/releases/download/v1.6.3/hlh"
sudo chmod a+x hl hlh
cd /usr/lib/HackerOS/hpm/ || exit
rm -f backend
curl -L -o backend "https://github.com/HackerOS-Linux-System/HackerOS-Package-Manager/releases/download/v0.6/backend"
chmod a+x backend
cd ~
echo "[INFO] updated complete"