forked from Packaging/Station
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
421 B
Bash
14 lines
421 B
Bash
#!/bin/bash
|
|
# $1 is the binary location, $2 is the arch, $3 is the svg icon
|
|
mkdir tmp
|
|
mkdir out
|
|
dpkg-deb -R template.deb tmp
|
|
sed -i '/Architecture:/d' tmp/DEBIAN/control
|
|
echo "Architecture: $2" >> tmp/DEBIAN/control
|
|
rm -rf tmp/usr/lib/notepost
|
|
mv "$1com.netsyms.NotePostApp" "$1notepost"
|
|
mkdir -p tmp/usr/lib
|
|
rsync -rv "$1" tmp/usr/lib/notepost
|
|
cp "$3" tmp/usr/lib/notepost/logo.svg
|
|
dpkg-deb -b tmp "out/notepost_$2.deb"
|