1
- #! /usr/ bin/bash
1
+ #! /bin/sh
2
2
3
3
set -e
4
4
set -x
5
5
6
6
mkdir -p /tmp/system-overlay
7
7
cd /tmp/system-overlay
8
8
9
- # Use blue folder icons instead of the ones packaged in FreeBSD which have yellow folder icons
10
- # Don't extract directly in /tmp, as tar will modify its permissions
11
- icons_temp=$( mktemp -d /tmp/icons.XXXXX)
12
- cd $icons_temp
13
- fetch http://archive.ubuntu.com/ubuntu/pool/universe/x/xubuntu-artwork/xubuntu-icon-theme_16.04.2_all.deb
14
- tar xf xubuntu-icon-theme_16.04.2_all.deb
15
- tar xf data.tar.xz
16
- mkdir -p " ${uzip} " /usr/share/icons/
17
- mv ./usr/share/icons/elementary-xfce " ${uzip} " /usr/share/icons/elementary
18
- ln -sf " elementary" " ${uzip} /usr/share/icons/elementary-xfce"
19
- mv ./usr/share/doc/xubuntu-icon-theme/copyright " ${uzip} " /usr/share/icons/elementary/
20
- cd -
21
- rm -r $icons_temp
22
-
23
- # curl -Lo - https://dl.cloudsmith.io/public/airyx/13_0/raw/files/gnome-icon-theme-3.12.0_1.pkg | tar xvf - -C "${uzip}"
24
- # curl -Lo - https://dl.cloudsmith.io/public/airyx/13_0/raw/files/gnome-icon-theme-symbolic-3.12.0.pkg | tar xvf - -C "${uzip}"
25
- # ( cd "${uzip}/usr/share/icons/" ; ln -s Adwaita adwaita )
26
-
27
- # Cursor theme with HiDPi Support, sizes: 22 24 28 32 40 48 56 64 72 80 88 96
28
- fetch https://github.com/ful1e5/apple_cursor/releases/download/v1.0.6/macOSBigSur.tar.gz
29
- tar xvf macOSBigSur.tar.gz
30
- mv macOSBigSur " ${uzip} /usr/share/icons/"
31
- chown -R root:wheel " ${uzip} /usr/share/icons"
32
- find " ${uzip} /usr/share/icons/macOSBigSur" -type d -exec chmod 755 {} \;
33
- find " ${uzip} /usr/share/icons/macOSBigSur" -type f -exec chmod 644 {} \;
34
- ( cd " ${uzip} /usr/share/icons/" ; ln -s macOSBigSur default )
35
- rm -f macOSBigSur.tar.gz
36
-
37
- # Pull in the default JDK
38
- mkdir -p " ${uzip} /Library/Java/JavaVirtualMachines/"
39
- curl -Lo - https://github.com/mszoek/airyx/releases/download/jdk-17.0.1/openjdk-17.0.1.jdk.txz | \
40
- tar -xf - -C " ${uzip} /Library/Java/JavaVirtualMachines/"
41
-
42
9
# Install our standard app bundles
43
10
mkdir -p " ${uzip} /Applications/Utilities"
44
11
45
- declare -A apps utils
12
+ # This syntax below needs bash or zsh. Rewrite it or add them to build server
13
+ # declare -A apps utils
46
14
# apps=(Kate 21.08.1 Firefox 97.0)
47
- utils=(Terminal 0.9.0)
15
+ # utils=(Terminal 0.9.0)
48
16
49
17
# for app in ${!apps[@]}; do
50
18
# tag="v${apps[$app]}"
@@ -53,12 +21,12 @@ utils=(Terminal 0.9.0)
53
21
# curl -Lo - https://github.com/airyxos/${app}_app/releases/download/${tag}/${app}.txz | \
54
22
# tar -xf - -C "${uzip}/Applications/"
55
23
# done
56
- for app in ${! utils[@]} ; do
57
- tag=" v${utils[$app]} "
58
- echo Fetching $app $tag
59
- curl -Lo - https://github.com/ravynsoft/${app} _app/releases/download/${tag} /${app} .txz | \
60
- tar -xf - -C " ${uzip} /Applications/Utilities/"
61
- done
24
+ # for app in ${!utils[@]}; do
25
+ # tag="v${utils[$app]}"
26
+ # echo Fetching $app $tag
27
+ # curl -Lo - https://github.com/ravynsoft/${app}_app/releases/download/${tag}/${app}.txz | \
28
+ # tar -xf - -C "${uzip}/Applications/Utilities/"
29
+ # done
62
30
63
31
# Fonts
64
32
fetch https://github.com/ArtifexSoftware/urw-base35-fonts/archive/20200910.zip
@@ -71,8 +39,6 @@ rm -rf urw-base35-fonts-20200910/ 20200910.zip
71
39
cat > /tmp/rc << \EOF
72
40
#!/bin/sh
73
41
74
- # The following block was added by helloSystem
75
- # FIXME: Let us know how to do this properly
76
42
# Silence messages if boot_mute="YES" is set
77
43
if [ "$( kenv boot_mute) " = "YES" ] ; then
78
44
conscontrol delete ttyv0 >/dev/null 2>&1
@@ -87,8 +53,6 @@ mv /tmp/rc "${uzip}/etc/rc"
87
53
cat > /tmp/rc.shutdown << \EOF
88
54
#!/bin/sh
89
55
90
- # The following block was added by helloSystem
91
- # FIXME: Let us know how to do this properly
92
56
# Silence messages if boot_mute="YES" is set
93
57
if [ "$( kenv boot_mute) " = "YES" ] ; then
94
58
exec 1>>/dev/null 2>&1
@@ -122,35 +86,3 @@ rm "${uzip}/etc/syslog.conf-e"
122
86
# Workaround to allow unmounting as normal user
123
87
# setuid root
124
88
chmod +s " ${uzip} /sbin/umount"
125
-
126
- # Brute force method to make FAT media fully accessible and executable by everyone
127
- # https://github.com/vermaden/automount/issues/21#issuecomment-808753031
128
- # https://github.com/vermaden/automount/issues/27
129
- # https://github.com/vermaden/automount/commit/f50118920208e49890067d00ecd6bb1a97b47ce3
130
- # FIXME: Use better solution
131
- sed -i -e ' s|longnames -m 644|longnames -m 777|g' " ${uzip} /usr/sbin/automount"
132
- sed -i -e ' s|longnames -m 755|longnames -m 777|g' " ${uzip} /usr/sbin/automount"
133
- rm " ${uzip} /usr/sbin/automount-e"
134
-
135
- # Required for runappimage
136
- fetch " https://github.com/helloSystem/elfsize/releases/download/0/elfsize"
137
- chmod +x elfsize
138
- mv elfsize " ${uzip} /usr/bin/"
139
-
140
- # Improve compatibility with many scripts from the Linux world,
141
- # including those in many AppImages
142
- chroot ${uzip} ln -s /usr/bin/bash /bin/bash
143
-
144
- # Make sure zsh exists in /bin too
145
- chroot ${uzip} ln -s /usr/bin/zsh /bin/zsh
146
-
147
- # Remove unwanted UDisks2VolumeMonitor D-Bus service
148
- # TODO: Find a proper way to do this. The correct thing to do would probably to split up the FreeBSD package
149
- # FIXME: This is guaranteed to break as soon as the user updates/upgrades the package
150
- if [ -f " ${uzip} /usr/share/dbus-1/services/org.gtk.vfs.UDisks2VolumeMonitor.service" ] ; then
151
- rm -rf " ${uzip} /usr/share/dbus-1/services/org.gtk.vfs.UDisks2VolumeMonitor.service"
152
- touch " ${uzip} /usr/share/dbus-1/services/org.gtk.vfs.UDisks2VolumeMonitor.service"
153
- # Make the file immutable so that even root cannot overwrite it
154
- chflags schg " ${uzip} /usr/share/dbus-1/services/org.gtk.vfs.UDisks2VolumeMonitor.service"
155
- fi
156
-
0 commit comments