From 91a348849dc9b2f5073c1d8b6bdb98cd85f3b1d6 Mon Sep 17 00:00:00 2001 From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com> Date: Sun, 4 Dec 2022 14:59:49 -0500 Subject: [PATCH] Fix wrong arch getting saved between builds --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 506a4721..f121c27f 100644 --- a/package.json +++ b/package.json @@ -7,15 +7,15 @@ "parcel": "parcel src/html/*.html --port 3000 --out-dir cache", "parcel-build": "del /q build && parcel build src/html/*.html --out-dir build --public-url ./ --experimental-scope-hoisting --no-source-maps", "dev": "wait-on http://localhost:3000/index.html && electron . --dev", - "electron-build": "electron-builder", + "electron-build": "electron-builder --x64", "postinstall": "electron-builder install-app-deps", - "appx": "npm run parcel-build && electron-builder -w appx -c.extraMetadata.name=twinkle-tray-appx -c.win.artifactName=\"${productName} v${version}-store.${ext}\"", - "appx-unsigned": "npm run parcel-build && electron-builder -w appx -c.appx.publisher=\"CN=AppModelSamples, OID.2.25.311729368913984317654407730594956997722=1\" -c.extraMetadata.name=twinkle-tray-appx -c.win.artifactName=\"${productName} v${version}-unsigned.${ext}\"", - "portable": "npm run parcel-build && electron-builder -w zip -c.extraMetadata.name=twinkle-tray-portable -c.win.artifactName=\"${productName} v${version}-portable.${ext}\" -c.win.compression=normal", - "arm64": "npm run parcel-build && electron-builder --arm64 -c.extraMetadata.name=twinkle-tray-arm64 -c.win.artifactName=\"${productName} v${version}-arm64.${ext}\" -c.win.compression=normal", + "appx": "npm rebuild && npm run parcel-build && electron-builder --x64 -w appx -c.extraMetadata.name=twinkle-tray-appx -c.win.artifactName=\"${productName} v${version}-store.${ext}\"", + "appx-unsigned": "npm rebuild && npm run parcel-build && electron-builder --x64 -w appx -c.appx.publisher=\"CN=AppModelSamples, OID.2.25.311729368913984317654407730594956997722=1\" -c.extraMetadata.name=twinkle-tray-appx -c.win.artifactName=\"${productName} v${version}-unsigned.${ext}\"", + "portable": "npm rebuild && npm run parcel-build && electron-builder --x64 -w zip -c.extraMetadata.name=twinkle-tray-portable -c.win.artifactName=\"${productName} v${version}-portable.${ext}\" -c.win.compression=normal", + "arm64": "npm rebuild && npm run parcel-build && electron-builder --arm64 -c.extraMetadata.name=twinkle-tray-arm64 -c.win.artifactName=\"${productName} v${version}-arm64.${ext}\" -c.win.compression=normal", "rebuild-ddcci-dev": "electron-rebuild -f -w @hensm/ddcci", - "appx-arm64": "npm run parcel-build && electron-builder --arm64 -w appx -c.extraMetadata.name=twinkle-tray-appx -c.win.artifactName=\"${productName} v${version}-store.${ext}\"", - "build": "npm run parcel-build && npm run electron-build", + "appx-arm64": "npm rebuild && npm run parcel-build && electron-builder --arm64 -w appx -c.extraMetadata.name=twinkle-tray-appx -c.win.artifactName=\"${productName} v${version}-store.${ext}\"", + "build": "npm run parcel-build && npm rebuild && npm run electron-build", "start": "concurrently \"npm run parcel\" \"npm run dev\"", "test-wmibridge": "node src/modules/wmi-bridge/example.js" },