debian build
This commit is contained in:
parent
c1e2b64aa4
commit
9ea0055067
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,5 +1,9 @@
|
||||||
/target
|
/target
|
||||||
|
|
||||||
# build/arch-linux
|
# build/arch-linux
|
||||||
build/arch-linux/*
|
build/arch/*
|
||||||
!build/arch-linux/PKGBUILD
|
!build/arch/PKGBUILD
|
||||||
|
|
||||||
|
# build/debian
|
||||||
|
build/debian/*
|
||||||
|
!build/debian/debian.sh
|
29
build/debian/debian.sh
Normal file
29
build/debian/debian.sh
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# create a directory structure that mirrors tha final structure of the installed package
|
||||||
|
mkdir -p pokerust/DEBIAN
|
||||||
|
mkdir -p pokerust/usr/bin
|
||||||
|
|
||||||
|
# build the executable
|
||||||
|
cd ../..
|
||||||
|
cargo build --release
|
||||||
|
cd build/debian
|
||||||
|
|
||||||
|
# copy the executable
|
||||||
|
cp ../../target/release/pokerust pokerust/usr/bin/
|
||||||
|
|
||||||
|
# create the control file
|
||||||
|
touch pokerust/DEBIAN/control
|
||||||
|
|
||||||
|
# edit the control file
|
||||||
|
echo "Package: pokerust
|
||||||
|
Version: 1.0.0
|
||||||
|
Section: base
|
||||||
|
Priority: optional
|
||||||
|
Architecture: amd64
|
||||||
|
Maintainer: Vomitblood <tohyouxuan@gmail.com>
|
||||||
|
Description: "Pokemon Colorscripts written in Rust"" > pokerust/DEBIAN/control
|
||||||
|
|
||||||
|
# actually build the thing
|
||||||
|
echo $(pwd)
|
||||||
|
dpkg-deb --build pokerust
|
Loading…
Reference in a new issue