Browse Source

Add prebuild script

pull/864/head
Kitaiti Makoto 2 months ago
parent
commit
254eef6a2a
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      script/prebuild.sh

+ 25
- 0
script/prebuild.sh View 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…
Cancel
Save