Skip to content

Commit fa10d01

Browse files
Merge pull request #2294 from plugdata-team/develop
Merge v0.9.3 into main
2 parents 6e43a34 + bd609d7 commit fa10d01

File tree

241 files changed

+14355
-4143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+14355
-4143
lines changed

.github/scripts/install-cmake.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
case $(uname -m) in
2-
x86_64) curl -L https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2-linux-x86_64.sh --output ./do-install-cmake.sh ;;
3-
arm) curl -L https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2-linux-aarch64.sh --output ./do-install-cmake.sh ;;
4-
arm64) curl -L https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2-linux-aarch64.sh --output ./do-install-cmake.sh ;;
5-
aarch64) curl -L https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2-linux-aarch64.sh --output ./do-install-cmake.sh ;;
2+
x86_64) curl -L https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0-linux-x86_64.sh --output ./do-install-cmake.sh ;;
3+
arm) curl -L https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0-linux-aarch64.sh --output ./do-install-cmake.sh ;;
4+
arm64) curl -L https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0-linux-aarch64.sh --output ./do-install-cmake.sh ;;
5+
aarch64) curl -L https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0-linux-aarch64.sh --output ./do-install-cmake.sh ;;
66
esac
77

88
chmod +x do-install-cmake.sh
9-
./do-install-cmake.sh --skip-license --prefix=/usr
9+
./do-install-cmake.sh --skip-license --prefix=/usr

.github/scripts/package-Windows.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.9.2
1+
VERSION=0.9.3
22

33
X64BitMode=""
44
if [[ $1 == "plugdata-Win64.msi" ]]; then
@@ -27,7 +27,7 @@ cat > ./plugdata.wxs <<-EOL
2727
<Product Id="*" UpgradeCode="\$(var.ProductUpgradeCode)"
2828
Name="plugdata" Version="\$(var.ProductVersion)" Manufacturer="Timothy Schoen" Language="1033">
2929
<Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package"/>
30-
<Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
30+
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" CompressionLevel="high"/>
3131
<Icon Id="ProductIcon" SourceFile="Resources\Icons\icon.ico"/>
3232
<Property Id="ARPPRODUCTICON" Value="ProductIcon"/>
3333
<WixVariable Id="WixUILicenseRtf" Value="Resources\Installer\LICENSE.rtf" />

.github/scripts/package-macOS.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ build_flavor()
3535
flavorprod=$2
3636
ident=$3
3737
loc=$4
38+
min_os=$5
3839

3940
echo --- BUILDING ${PRODUCT_NAME}_${flavor}.pkg ---
4041

@@ -44,7 +45,7 @@ build_flavor()
4445
pkgbuild --analyze --root $TMPDIR ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist
4546
plutil -replace BundleIsRelocatable -bool NO ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist
4647
plutil -replace BundleIsVersionChecked -bool NO ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist
47-
pkgbuild --root $TMPDIR --identifier $ident --version $VERSION --install-location $loc --component-plist ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.pkg
48+
pkgbuild --root $TMPDIR --identifier $ident --version $VERSION --install-location $loc --min-os-version $min_os --compression latest --component-plist ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.plist ${PKG_DIR}/${PRODUCT_NAME}_${flavor}.pkg
4849

4950
rm -r $TMPDIR
5051
}
@@ -64,29 +65,36 @@ if [ -n "$AC_USERNAME" ]; then
6465

6566
fi
6667

68+
BUILD_TYPE=$1
69+
if [[ "$BUILD_TYPE" == "Universal" ]]; then
70+
MIN_OS_VERSION="10.15"
71+
else
72+
MIN_OS_VERSION="10.11" # Use default/legacy for 10.11 support
73+
fi
74+
6775
# # try to build VST3 package
6876
if [[ -d $VST3 ]]; then
69-
build_flavor "VST3" $VST3 "com.plugdata.vst3.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/VST3"
77+
build_flavor "VST3" $VST3 "com.plugdata.vst3.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/VST3" "$MIN_OS_VERSION"
7078
fi
7179

7280
# try to build LV2 package
7381
if [[ -d $LV2 ]]; then
74-
build_flavor "LV2" $LV2 "com.plugdata.lv2.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/LV2"
82+
build_flavor "LV2" $LV2 "com.plugdata.lv2.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/LV2" "$MIN_OS_VERSION"
7583
fi
7684

7785
# # try to build AU package
7886
if [[ -d $AU ]]; then
79-
build_flavor "AU" $AU "com.plugdata.au.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/Components"
87+
build_flavor "AU" $AU "com.plugdata.au.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/Components" "$MIN_OS_VERSION"
8088
fi
8189

8290
# # try to build CLAP package
8391
if [[ -d $CLAP ]]; then
84-
build_flavor "CLAP" $CLAP "com.plugdata.clap.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/CLAP"
92+
build_flavor "CLAP" $CLAP "com.plugdata.clap.pkg.${PRODUCT_NAME}" "/Library/Audio/Plug-Ins/CLAP" "$MIN_OS_VERSION"
8593
fi
8694

8795
# try to build App package
8896
if [[ -d $APP ]]; then
89-
build_flavor "APP" $APP "com.plugdata.app.pkg.${PRODUCT_NAME}" "/Applications"
97+
build_flavor "APP" $APP "com.plugdata.app.pkg.${PRODUCT_NAME}" "/Applications" "$MIN_OS_VERSION"
9098
fi
9199

92100

.github/workflows/cmake.yml

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
aws configure set default.region eu-north-1
6262
aws s3 cp ./plugdata-macOS-Universal.pkg s3://plugdata-nightly/
6363
aws s3 cp ./plugdata-macOS-Universal.pkg.txt s3://plugdata-nightly/
64+
aws cloudfront create-invalidation --distribution-id E3OV68BQRGDGE2 --paths "/plugdata-macOS-Universal.pkg" "/plugdata-macOS-Universal.pkg.txt"
6465
6566
- name: Archive Artifacts
6667
uses: actions/upload-artifact@v4
@@ -77,7 +78,7 @@ jobs:
7778
files: plugdata-macOS-Universal
7879

7980
macos-legacy-build:
80-
runs-on: macos-13
81+
runs-on: macos-14
8182

8283
steps:
8384
- uses: actions/checkout@v4
@@ -131,6 +132,7 @@ jobs:
131132
aws configure set default.region eu-north-1
132133
aws s3 cp ./plugdata-macOS-Legacy.pkg s3://plugdata-nightly/
133134
aws s3 cp ./plugdata-macOS-Legacy.pkg.txt s3://plugdata-nightly/
135+
aws cloudfront create-invalidation --distribution-id E3OV68BQRGDGE2 --paths "/plugdata-macOS-Legacy.pkg" "/plugdata-macOS-Legacy.pkg.txt"
134136
135137
- name: Archive Artifacts
136138
uses: actions/upload-artifact@v4
@@ -191,6 +193,7 @@ jobs:
191193
aws configure set default.region eu-north-1
192194
aws s3 cp ./plugdata-Win64.msi s3://plugdata-nightly/
193195
aws s3 cp ./plugdata-Win64.msi.txt s3://plugdata-nightly/
196+
aws cloudfront create-invalidation --distribution-id E3OV68BQRGDGE2 --paths "/plugdata-Win64.msi" "/plugdata-Win64.msi.txt"
194197
195198
- name: Archive Artifacts
196199
uses: actions/upload-artifact@v4
@@ -244,6 +247,7 @@ jobs:
244247
aws configure set default.region eu-north-1
245248
aws s3 cp ./plugdata-Win32.msi s3://plugdata-nightly/
246249
aws s3 cp ./plugdata-Win32.msi.txt s3://plugdata-nightly/
250+
aws cloudfront create-invalidation --distribution-id E3OV68BQRGDGE2 --paths "/plugdata-Win32.msi" "/plugdata-Win32.msi.txt"
247251
248252
- name: Archive Artifacts
249253
uses: actions/upload-artifact@v4
@@ -305,11 +309,11 @@ jobs:
305309

306310
- name: Install Dependencies (zypper)
307311
if: ${{ matrix.pacman == 'zypper' }}
308-
run: zypper refresh && zypper install -y git rsync wget bzip2 xz tar cmake alsa-devel libXinerama-devel libXi-devel libcurl-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel freetype2-devel gcc gcc-c++ curl ccache python3 libjack-devel gawk unzip ninja
312+
run: zypper dup -y && zypper install -y git rsync wget bzip2 xz tar cmake alsa-devel libXinerama-devel libXi-devel libcurl-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel freetype2-devel gcc gcc-c++ curl ccache python3 libjack-devel gawk unzip ninja
309313

310314
- name: Install Dependencies (pacman)
311315
if: ${{ matrix.pacman == 'pacman' }}
312-
run: pacman -Sy && pacman -S --noconfirm cmake wget bzip2 git alsa-lib freetype2 libx11 libxcursor libxi libxext libxinerama libxrandr libxrender webkit2gtk cmake make gcc pkgconf python python-pip curl ccache freeglut mesa glfw-x11 glew jack2 openssl unzip ninja && pacman --noconfirm -Syu
316+
run: pacman --noconfirm -Syu && pacman -S --noconfirm tar cmake wget bzip2 git alsa-lib freetype2 libx11 libxcursor libxi libxext libxinerama libxrandr libxrender webkit2gtk cmake make gcc pkgconf python python-pip curl ccache freeglut mesa glfw-x11 glew jack2 openssl unzip ninja && pacman --noconfirm -Syu
313317

314318
- uses: actions/checkout@v4
315319
with:
@@ -349,6 +353,7 @@ jobs:
349353
aws configure set default.region eu-north-1
350354
aws s3 cp ./plugdata-${{ matrix.name }}.tar.xz s3://plugdata-nightly/
351355
aws s3 cp ./plugdata-${{ matrix.name }}.tar.xz.txt s3://plugdata-nightly/
356+
aws cloudfront create-invalidation --distribution-id E3OV68BQRGDGE2 --paths "/plugdata-${{ matrix.name }}.tar.xz" "/plugdata-${{ matrix.name }}.tar.xz.txt"
352357
353358
- name: Archive Artifacts
354359
uses: actions/upload-artifact@v4
@@ -392,6 +397,12 @@ jobs:
392397
- name: Fedora-42-aarch64
393398
os: fedora:42
394399
pacman: dnf
400+
- name: OpenSUSE-Tumbleweed-aarch64
401+
os: opensuse/tumbleweed
402+
pacman: zypper
403+
- name: Arch-aarch64
404+
os: agners/archlinuxarm
405+
pacman: pacman
395406

396407
steps:
397408
- name: Install Dependencies (dnf)
@@ -402,6 +413,14 @@ jobs:
402413
if: ${{ matrix.pacman == 'apt' }}
403414
run: apt update && DEBIAN_FRONTEND=noninteractive TZ="Europe/Amsterdam" apt install -y cmake git wget bzip2 build-essential libasound2-dev libjack-jackd2-dev curl libcurl4-openssl-dev libfreetype6-dev libx11-dev libxi-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxrandr-dev libxinerama-dev ccache python3 python3-pip freeglut3-dev unzip ninja-build
404415

416+
- name: Install Dependencies (zypper)
417+
if: ${{ matrix.pacman == 'zypper' }}
418+
run: zypper dup -y && zypper install -y git rsync wget bzip2 xz tar cmake alsa-devel libXinerama-devel libXi-devel libcurl-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel freetype2-devel gcc gcc-c++ curl ccache python3 libjack-devel gawk unzip ninja
419+
420+
- name: Install Dependencies (pacman)
421+
if: ${{ matrix.pacman == 'pacman' }}
422+
run: pacman --noconfirm -Syu && pacman -S --noconfirm tar cmake wget bzip2 git alsa-lib freetype2 libx11 libxcursor libxi libxext libxinerama libxrandr libxrender webkit2gtk cmake make gcc pkgconf python python-pip curl ccache freeglut mesa glfw-x11 glew jack2 openssl unzip ninja
423+
405424
- uses: actions/checkout@v4
406425
with:
407426
submodules: recursive
@@ -439,6 +458,7 @@ jobs:
439458
aws configure set default.region eu-north-1
440459
aws s3 cp ./plugdata-${{ matrix.name }}.tar.xz s3://plugdata-nightly/
441460
aws s3 cp ./plugdata-${{ matrix.name }}.tar.xz.txt s3://plugdata-nightly/
461+
aws cloudfront create-invalidation --distribution-id E3OV68BQRGDGE2 --paths "/plugdata-${{ matrix.name }}.tar.xz" "/plugdata-${{ matrix.name }}.tar.xz.txt"
442462
443463
- name: Archive Artifacts
444464
uses: actions/upload-artifact@v4
@@ -453,3 +473,49 @@ jobs:
453473
prerelease: true
454474
draft: true
455475
files: plugdata-${{ matrix.name }}
476+
477+
push-nightlies:
478+
runs-on: ubuntu-latest
479+
needs:
480+
[
481+
macos-universal-build,
482+
macos-legacy-build,
483+
windows-64-build,
484+
windows-32-build,
485+
linux-x64-build,
486+
linux-arm-build,
487+
]
488+
if: always() && github.ref == 'refs/heads/develop'
489+
steps:
490+
- name: Invalidate CloudFront Cache
491+
run: |
492+
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY }}
493+
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_KEY }}
494+
aws configure set default.region eu-north-1
495+
aws cloudfront create-invalidation \
496+
--distribution-id E3OV68BQRGDGE2 \
497+
--paths "/*"
498+
499+
package-all-artifacts:
500+
runs-on: ubuntu-latest
501+
needs:
502+
[
503+
macos-universal-build,
504+
macos-legacy-build,
505+
windows-64-build,
506+
windows-32-build,
507+
linux-x64-build,
508+
linux-arm-build,
509+
]
510+
if: github.ref == 'refs/heads/main'
511+
steps:
512+
- name: Download all artifacts
513+
uses: actions/download-artifact@v4
514+
with:
515+
path: release-package
516+
517+
- name: Upload combined package
518+
uses: actions/upload-artifact@v4
519+
with:
520+
name: plugdata-all-platforms
521+
path: release-package

0 commit comments

Comments
 (0)