GeezerVison is showing github.com — Releases: one zip per operating system · hexamorphical/hypercut@d0eb5aa
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -57,8 +57,8 @@ The full git history of Livecut and the DPF port is kept in this repository. |
57 | 57 |
|
58 | 58 | ## Download and install |
59 | 59 |
|
60 | | -Get the latest build for your system from the [Releases page](https://github.com/hexamorphical/hypercut/releases) and |
61 | | -unzip the format your DAW uses into its plugin folder: |
| 60 | +Download the zip for your system from the [Releases page](https://github.com/hexamorphical/hypercut/releases). Each zip |
| 61 | +has every format; copy the one your DAW uses into its plugin folder: |
62 | 62 |
|
63 | 63 | | Format | Linux | Windows | macOS | |
64 | 64 | | --- | --- | --- | --- | |
|
Collapse file
Copy file name to clipboardExpand all lines: scripts/package.sh +8-7Lines changed: 8 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | #!/usr/bin/env bash |
2 | | -# Packages the build in bin/ into dist/: one zip per format plus one with everything. |
| 2 | +# Packages the build in bin/ into one zip in dist/ with every format, inside a folder named like the zip. |
3 | 3 | # Works for the Linux, Windows (MSYS2) and macOS builds; the file names differ per platform. |
4 | 4 | # Usage: scripts/package.sh <version> <platform> e.g. scripts/package.sh v0.1-beta windows-x64 |
5 | 5 | set -euo pipefail |
@@ -14,7 +14,9 @@ mkzip() { local dst="$1"; shift; if command -v zip >/dev/null; then zip -qry "$d |
14 | 14 | first() { local f; for f in "$@"; do if [ -e "bin/$f" ]; then echo "$f"; return 0; fi; done; return 0; } |
15 | 15 |
|
16 | 16 | mkdir -p dist |
17 | | -all=() |
| 17 | +stage="$(mktemp -d)" |
| 18 | +trap 'rm -rf "$stage"' EXIT |
| 19 | +mkdir -p "$stage/$base" |
18 | 20 | for fmt in vst3 clap lv2 vst2 standalone; do |
19 | 21 | case $fmt in |
20 | 22 | vst3) f=$(first HyperCut.vst3) ;; |
@@ -24,10 +26,9 @@ for fmt in vst3 clap lv2 vst2 standalone; do |
24 | 26 | standalone) f=$(first HyperCut.app HyperCut.exe HyperCut) ;; |
25 | 27 | esac |
26 | 28 | if [ -z "$f" ]; then echo "error: no $fmt build in bin/" >&2; exit 1; fi |
27 | | - rm -f "dist/$base-$fmt.zip" |
28 | | - (cd bin && mkzip "../dist/$base-$fmt.zip" "$f") |
29 | | - all+=("$f") |
| 29 | + cp -R "bin/$f" "$stage/$base/" |
30 | 30 | done |
31 | | -rm -f "dist/$base-all.zip" |
32 | | -(cd bin && mkzip "../dist/$base-all.zip" "${all[@]}") |
| 31 | +rm -f "dist/$base.zip" |
| 32 | +out="$(pwd)/dist/$base.zip" |
| 33 | +(cd "$stage" && mkzip "$out" "$base") |
33 | 34 | ls -l dist |