-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.sh
executable file
·21 lines (16 loc) · 946 Bytes
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
VERSION="1.0"
mkdir sb-signtool-$VERSION
mkdir -p sb-signtool-$VERSION/usr/bin
mkdir -p sb-signtool-$VERSION/usr/lib/systemd/system
mkdir -p sb-signtool-$VERSION/usr/share/doc/sb-signtool
mkdir -p sb-signtool-$VERSION/etc/sb-signtool/keyfiles
install -m 755 usr/bin/sb-signtool-sign sb-signtool-$VERSION/usr/bin/
install -m 644 usr/lib/systemd/system/sb-signtool.service sb-signtool-$VERSION/usr/lib/systemd/system/
install -m 644 etc/sb-signtool/modules.conf sb-signtool-$VERSION/etc/sb-signtool/
install -m 644 etc/sb-signtool/mok.rc sb-signtool-$VERSION/etc/sb-signtool/
install -m 644 usr/share/doc/sb-signtool/example_modules.conf sb-signtool-$VERSION/usr/share/doc/sb-signtool/
install -m 644 LICENSE sb-signtool-$VERSION/usr/share/doc/sb-signtool/
install -m 644 README.md sb-signtool-$VERSION/usr/share/doc/sb-signtool/
tar -zcvf sb-signtool-1.0.tar.gz sb-signtool-$VERSION/ install.sh
rm -r sb-signtool-$VERSION