This repository was archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh.patch
More file actions
54 lines (54 loc) · 1.74 KB
/
install.sh.patch
File metadata and controls
54 lines (54 loc) · 1.74 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
3c3
< INSTALL_PATH=/opt/zbstudio
---
> INSTALL_PATH=/app/opt/zbstudio
14c14
< sudo rm -r $INSTALL_PATH
---
> rm -r $INSTALL_PATH
17,19c17
< INITIAL_USER=`whoami`
< sudo mkdir -p $INSTALL_PATH
< sudo chown -R $INITIAL_USER $INSTALL_PATH
---
> mkdir -p $INSTALL_PATH
21c19
< sudo cp -rp app/* $INSTALL_PATH
---
> cp -rp app/* $INSTALL_PATH
25c23,24
< sudo xdg-icon-resource install --novendor --size $ICON_SIZE $INSTALL_PATH/zbstudio/res/icons/${ICON_SIZE}x${ICON_SIZE}/apps/zbstudio.png "zbstudio"
---
> mkdir -p /app/share/icons/hicolor/${ICON_SIZE}x${ICON_SIZE}/apps/
> cp -rp $INSTALL_PATH/zbstudio/res/icons/${ICON_SIZE}x${ICON_SIZE}/apps/zbstudio.png /app/share/icons/hicolor/${ICON_SIZE}x${ICON_SIZE}/apps/com.zerobrane.studio.png
30c29,30
< sudo xdg-desktop-menu install --novendor $INSTALL_PATH/zbstudio/res/zbstudio.desktop
---
> cp -rp $INSTALL_PATH/zbstudio/res/zbstudio.desktop /app/share/applications/com.zerobrane.studio.desktop
> cp -rp $INSTALL_PATH/zbstudio/res/zbstudio.appdata.xml /app/share/appdata/com.zerobrane.studio.appdata.xml
33c33
< sudo update-menus
---
> update-menus
36,37c36,37
< if [ -e "/usr/bin/zbstudio" ]; then
< sudo rm /usr/bin/zbstudio
---
> if [ -e "/app/bin/zbstudio" ]; then
> rm /app/bin/zbstudio
39,40c39,40
< sudo ln -s $INSTALL_PATH/zbstudio.sh /usr/bin/zbstudio
< sudo chmod +x $INSTALL_PATH/zbstudio.sh
---
> ln -s $INSTALL_PATH/zbstudio.sh /app/bin/zbstudio
> chmod +x $INSTALL_PATH/zbstudio.sh
42c42
< echo $VERSION | sudo tee $INSTALL_PATH/VERSION >/dev/null
---
> echo $VERSION | tee $INSTALL_PATH/VERSION >/dev/null
44,45c44,45
< sudo cp uninstall.sh /usr/bin/zbstudio-uninstall
< sudo chmod +x /usr/bin/zbstudio-uninstall
---
> cp uninstall.sh /app/bin/zbstudio-uninstall
> chmod +x /app/bin/zbstudio-uninstall