Skip to content

Commit d4d5203

Browse files
3.343
1 parent f37dc15 commit d4d5203

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,22 @@ jobs:
127127
shell: bash
128128
run: |
129129
set -euo pipefail
130-
SIGNED_EXE=$(echo signed-windows/*.exe)
130+
shopt -s nullglob
131+
132+
files=(signed-windows/*.exe)
133+
if [[ ${#files[@]} -ne 1 ]]; then
134+
echo "Expected exactly one signed exe, found ${#files[@]}" >&2
135+
exit 1
136+
fi
137+
138+
SIGNED_EXE="${files[0]}"
131139
EXE_BASENAME=$(basename "$SIGNED_EXE")
132140
VERSION=$(node -p "require('./package.json').version")
133141
OUT_DIR=dist-win32
134142
mkdir -p "$OUT_DIR"
135143
136-
APP_BUILDER=$(node -p "require('app-builder-bin').path")
144+
# Use app-builder bundled with electron-builder to regenerate blockmap for the signed binary
145+
APP_BUILDER=$(node -p "require('app-builder-bin').appBuilderPath")
137146
"$APP_BUILDER" blockmap --input "$SIGNED_EXE" --output "$OUT_DIR/${EXE_BASENAME}.blockmap"
138147
139148
EXE="$SIGNED_EXE" BLOCKMAP="$OUT_DIR/${EXE_BASENAME}.blockmap" VERSION="$VERSION" OUT_DIR="$OUT_DIR" node - <<'EOF'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Pinokio",
33
"private": true,
4-
"version": "3.342.0",
4+
"version": "3.343.0",
55
"homepage": "https://pinokio.co",
66
"description": "pinokio",
77
"main": "main.js",
@@ -144,7 +144,7 @@
144144
"electron-store": "^8.1.0",
145145
"electron-updater": "^6.6.2",
146146
"electron-window-state": "^5.0.3",
147-
"pinokiod": "^3.342.0"
147+
"pinokiod": "^3.343.0"
148148
},
149149
"devDependencies": {
150150
"@electron/rebuild": "3.2.10",

0 commit comments

Comments
 (0)