ci: Don't pack Windows artifact

This commit is contained in:
Elian Doran 2024-07-20 22:02:29 +03:00
parent 80e647ffec
commit 128af66797
No known key found for this signature in database
2 changed files with 8 additions and 6 deletions

View File

@ -104,7 +104,7 @@ jobs:
- run: npm ci
- run: |
./bin/update-build-info.sh
./bin/build-win-x64.sh
./bin/build-win-x64.sh DONTPACK
- uses: actions/upload-artifact@v4
with:
name: trilium-windows-x64

View File

@ -34,9 +34,11 @@ rm -rf $BUILD_DIR/dump-db/node_modules
cp bin/tpl/trilium-{portable,no-cert-check,safe-mode}.bat $BUILD_DIR/
echo "Zipping windows x64 electron distribution..."
VERSION=`jq -r ".version" package.json`
if [ "$1" != "DONTPACK" ]
then
echo "Zipping windows x64 electron distribution..."
VERSION=`jq -r ".version" package.json`
cd dist
zip -r9 trilium-windows-x64-${VERSION}.zip trilium-windows-x64
cd dist
zip -r9 trilium-windows-x64-${VERSION}.zip trilium-windows-x64
fi