Skip to content

Commit 33984b8

Browse files
committed
Include update-electron-app in packaged app, add step timers to build script
1 parent 2bdfe2f commit 33984b8

2 files changed

Lines changed: 25 additions & 11 deletions

File tree

forge.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@ const config: ForgeConfig = {
2727
if (filePath === "/.next" || filePath.startsWith("/.next/standalone")) return false;
2828
if (filePath.startsWith("/drizzle")) return false;
2929
if (filePath.startsWith("/public")) return false;
30+
if (filePath.startsWith("/node_modules/update-electron-app")) return false;
31+
if (filePath.startsWith("/node_modules/github-url-to-object")) return false;
32+
if (filePath.startsWith("/node_modules/ms")) return false;
3033
return true;
3134
},
3235
},
3336
makers: [
3437
new MakerDMG({
3538
format: "ULFO",
3639
name: "Itsyconnect",
40+
icon: "public/icon.icns",
41+
overwrite: true,
3742
}),
3843

3944
new MakerZIP({}),

scripts/build-release.sh

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,26 @@ fi
3636

3737
VERSION=$(node -p "require('./package.json').version")
3838
echo "==> Building Itsyconnect v$VERSION"
39+
echo ""
40+
41+
step_start() { STEP_START=$SECONDS; echo "==> $1..."; }
42+
step_done() { echo " done in $(( SECONDS - STEP_START ))s"; echo ""; }
3943

40-
echo "==> Compiling Electron TypeScript..."
44+
step_start "Compiling Electron TypeScript"
4145
npm run electron:compile
46+
step_done
4247

43-
echo "==> Building Next.js..."
48+
step_start "Building Next.js"
4449
npx next build
50+
step_done
4551

46-
echo "==> Preparing standalone bundle..."
52+
step_start "Preparing standalone bundle"
4753
npm run electron:prepare
54+
step_done
4855

49-
echo "==> Making DMG + ZIP (signing + notarizing)..."
56+
step_start "Making DMG + ZIP (signing + notarizing)"
5057
npx electron-forge make
58+
step_done
5159

5260
# Find outputs and rename DMG to stable filename for /releases/latest/download/Itsyconnect.dmg
5361
ORIG_DMG=$(find out/make -name "*.dmg" -type f | head -1)
@@ -67,19 +75,20 @@ mv "$ORIG_DMG" "$DMG_PATH"
6775

6876
DMG_SHA=$(shasum -a 256 "$DMG_PATH" | cut -d' ' -f1)
6977

70-
echo ""
7178
echo "==> Build complete!"
72-
echo " DMG: $DMG_PATH"
73-
echo " ZIP: $ZIP_PATH"
79+
echo " DMG: $DMG_PATH ($(du -h "$DMG_PATH" | cut -f1 | xargs))"
80+
echo " ZIP: $ZIP_PATH ($(du -h "$ZIP_PATH" | cut -f1 | xargs))"
7481
echo " SHA256 (DMG): $DMG_SHA"
75-
7682
echo ""
77-
echo "==> Creating draft GitHub release v$VERSION..."
83+
84+
step_start "Creating draft GitHub release v$VERSION"
7885
gh release create "v$VERSION" "$DMG_PATH" "$ZIP_PATH" \
7986
--title "v$VERSION" \
8087
--draft \
8188
--generate-notes
89+
step_done
8290

83-
echo ""
84-
echo "==> Done! Review the draft release on GitHub, then publish it."
91+
TOTAL=$(( SECONDS ))
92+
echo "==> All done in $(( TOTAL / 60 ))m $(( TOTAL % 60 ))s"
93+
echo " Review the draft release on GitHub, then publish it."
8594
echo " https://github.com/nickustinov/itsyconnect-macos/releases"

0 commit comments

Comments
 (0)