Skip to content

Commit

Permalink
Add ISO-pack generator OBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Jan 3, 2021
1 parent e8e3f7e commit 349b6f9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion misc/isopack.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OS="linux"
V="0.9.2"
V="0.9.3"
for ISO in $(ls ../i18n)
do
#Remove previous working dir
Expand Down
30 changes: 30 additions & 0 deletions misc/isopackobsd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
OS="OpenBSD"
V="0.9.3"
for ISO in $(ls ../i18n)
do
#Remove previous working dir
rm -rf /tmp/dist
#Create folder structure
mkdir /tmp/dist
mkdir /tmp/dist/bin
mkdir /tmp/dist/examples
mkdir /tmp/dist/fonts
mkdir /tmp/dist/mods
mkdir /tmp/dist/mods/request
mkdir /tmp/dist/mods/json
#Copy license
cp ../LICENSE /tmp/dist/
#Copy binary
cp ../bin/${OS}/ctr${ISO} /tmp/dist/bin/ctr${ISO}
#Copy examples
cp ../examples/${ISO}/* /tmp/dist/examples/
#Copy font
cp ../fonts/Citrine.ttf /tmp/dist/fonts/
#Copy mods
cp ../mods/${OS}/request/libctrrequest.so /tmp/dist/mods/request/
cp ../mods/${OS}/json/libctrjson.so /tmp/dist/mods/json/
#Archive
tar cvzf citrine${V}-${OS}-${ISO}.tar.gz -C /tmp dist
#Sign
signify-openbsd -Sz -s keys/privatekey.sec -m citrine${V}-${OS}-${ISO}.tar.gz -x downloads/${OS}/citrine${V}-${OS}-${ISO}.tgz
done

0 comments on commit 349b6f9

Please sign in to comment.