GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • README.md
  • scripts
    • package.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

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 numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ The full git history of Livecut and the DPF port is kept in this repository.
5757

5858
## Download and install
5959

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:
6262

6363
| Format | Linux | Windows | macOS |
6464
| --- | --- | --- | --- |
Collapse file

‎scripts/package.sh‎

Copy file name to clipboardExpand all lines: scripts/package.sh
+8-7Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/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.
33
# Works for the Linux, Windows (MSYS2) and macOS builds; the file names differ per platform.
44
# Usage: scripts/package.sh <version> <platform> e.g. scripts/package.sh v0.1-beta windows-x64
55
set -euo pipefail
@@ -14,7 +14,9 @@ mkzip() { local dst="$1"; shift; if command -v zip >/dev/null; then zip -qry "$d
1414
first() { local f; for f in "$@"; do if [ -e "bin/$f" ]; then echo "$f"; return 0; fi; done; return 0; }
1515

1616
mkdir -p dist
17-
all=()
17+
stage="$(mktemp -d)"
18+
trap 'rm -rf "$stage"' EXIT
19+
mkdir -p "$stage/$base"
1820
for fmt in vst3 clap lv2 vst2 standalone; do
1921
case $fmt in
2022
vst3) f=$(first HyperCut.vst3) ;;
@@ -24,10 +26,9 @@ for fmt in vst3 clap lv2 vst2 standalone; do
2426
standalone) f=$(first HyperCut.app HyperCut.exe HyperCut) ;;
2527
esac
2628
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/"
3030
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")
3334
ls -l dist

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.