Merge pull request 'Add scripts to make prebuilt binaries' (#864) from prebuild-script into main
Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/864
This commit is contained in:
commit
64d38c88e8
6
script/prebuild-in-docker.sh
Executable file
6
script/prebuild-in-docker.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
version="$1"
|
||||
|
||||
docker run --rm -v $PWD:/repo -v $PWD/pkg:/pkg -v $PWD/script/prebuild.sh:/prebuild.sh plumeorg/plume-buildenv:v0.3.0 /prebuild.sh "$version" /repo /prebuild /pkg
|
25
script/prebuild.sh
Executable file
25
script/prebuild.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
version="$1"
|
||||
repo="$2"
|
||||
builddir="$3"
|
||||
pkg="$4"
|
||||
|
||||
build () {
|
||||
features="$1"
|
||||
cargo clean
|
||||
cargo web deploy -p plume-front --release
|
||||
cargo build --release --no-default-features --features="${features}" --package=plume-cli
|
||||
cargo build --release --no-default-features --features="${features}"
|
||||
./script/generate_artifact.sh
|
||||
}
|
||||
|
||||
git clone $repo $builddir
|
||||
cd $builddir
|
||||
git checkout $version
|
||||
mkdir -p $pkg
|
||||
build postgres
|
||||
mv plume.tar.gz /pkg/plume-postgres.tar.gz
|
||||
build sqlite
|
||||
mv plume.tar.gz /pkg/plume-sqlite.tar.gz
|
Loading…
Reference in New Issue
Block a user