-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (36 loc) · 1.63 KB
/
justfile
File metadata and controls
50 lines (36 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
id := "st.lynx.plugins.opendeck-akp03.sdPlugin"
release: bump package tag
package: build-linux build-mac build-win collect zip
bump next=`git cliff --bumped-version | tr -d "v"`:
git diff --cached --exit-code
echo "We will bump version to {{next}}, press any key"
read ans
sed -i 's/"Version": ".*"/"Version": "{{next}}"/g' manifest.json
sed -i 's/^version = ".*"$/version = "{{next}}"/g' Cargo.toml
tag next=`git cliff --bumped-version`:
echo "Generating changelog"
git cliff -o CHANGELOG.md --tag {{next}}
echo "We will now commit the changes, please review before pressing any key"
read ans
git add .
git commit -m "chore(release): {{next}}"
git tag "{{next}}"
build-linux:
cargo build --release --target x86_64-unknown-linux-gnu --target-dir target/plugin-linux
build-mac:
docker run --rm -it -v $(pwd):/io -w /io ghcr.io/rust-cross/cargo-zigbuild:sha-eba2d7e cargo zigbuild --release --target universal2-apple-darwin --target-dir target/plugin-mac
build-win:
cargo build --release --target x86_64-pc-windows-gnu --target-dir target/plugin-win
clean:
sudo rm -rf target/
collect:
rm -rf build
mkdir -p build/{{id}}
cp -r assets build/{{id}}
cp manifest.json build/{{id}}
cp target/plugin-linux/x86_64-unknown-linux-gnu/release/opendeck-akp03 build/{{id}}/opendeck-akp03-linux
cp target/plugin-mac/universal2-apple-darwin/release/opendeck-akp03 build/{{id}}/opendeck-akp03-mac
cp target/plugin-win/x86_64-pc-windows-gnu/release/opendeck-akp03.exe build/{{id}}/opendeck-akp03-win.exe
[working-directory: "build"]
zip:
zip -r opendeck-akp03.plugin.zip {{id}}/