added debian packaging script
This commit is contained in:
parent
a1ecb1df47
commit
00e5ebd868
1 changed files with 28 additions and 0 deletions
28
package.sh
Executable file
28
package.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION="0.1-0"
|
||||
TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION"
|
||||
echo Building Debian package...
|
||||
|
||||
mkdir -p $TEMP_PKG_PATH/usr/local/bin
|
||||
mkdir -p $TEMP_PKG_PATH/etc/bash_completion.d
|
||||
mkdir -p $TEMP_PKG_PATH/DEBIAN
|
||||
|
||||
cp build/* $TEMP_PKG_PATH/usr/local/bin
|
||||
cp bash-tab-completion $TEMP_PKG_PATH/etc/bash_completion.d/steamguard
|
||||
|
||||
cat <<EOT >> $TEMP_PKG_PATH/DEBIAN/control
|
||||
Package: steamguard-cli
|
||||
Version: $VERSION
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Carson McManus <dyc3@users.noreply.github.com>
|
||||
Description: steamguard-cli
|
||||
A command line utility to generate Steam Guard codes
|
||||
(AKA 2 factor authentication codes).
|
||||
EOT
|
||||
|
||||
dpkg-deb --build $TEMP_PKG_PATH steamguard-cli_$VERSION.deb
|
||||
|
||||
rm -rf $TEMP_PKG_PATH
|
Loading…
Reference in a new issue