Skip to content

Commit

Permalink
1.10.23:Windows platform multi-version build and upgrade support
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjia404 committed Jun 25, 2023
1 parent 2e4fc54 commit 2f892d1
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 78 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "session-desktop",
"productName": "Session",
"description": "Private messaging from your desktop",
"version": "1.10.22",
"version": "1.10.23",
"license": "GPL-3.0",
"author": {
"name": "Oxen Labs",
Expand Down Expand Up @@ -66,10 +66,10 @@
"coverage": "nyc --reporter=html mocha -r jsdom-global/register --recursive --exit --timeout 10000 \"./ts/test/**/*_test.js\"",
"build-release": "run-script-os",
"build-release-non-linux": "yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release",
"build-release:win32": "yarn build-release-non-linux",
"build-release:win7-e19": "yarn upgrade [email protected] --dev && yarn add better-sqlite3@https://github.com/oxen-io/session-better-sqlite3#af47530acea25800d22b5e1ae834b709d2bfca40 && yarn install --frozen-lockfile && yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release/win7-e19",
"build-release:win7": "yarn upgrade [email protected] --dev && yarn add better-sqlite3@https://github.com/signalapp/better-sqlite3#5ea24501fc26e7aa14930815897b3348e687a787 && yarn install --frozen-lockfile && yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release/win7",
"build-release:win10": "yarn upgrade [email protected] --dev && yarn add better-sqlite3@https://github.com/signalapp/better-sqlite3#5ea24501fc26e7aa14930815897b3348e687a787 && yarn install --frozen-lockfile && yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release/win10",
"build-release:win32": "yarn build-release:win7-e19 && yarn build-release:win7 && yarn build-release:win10 ",
"build-release:win7-e19": "yarn upgrade [email protected] --dev && yarn add better-sqlite3@https://github.com/oxen-io/session-better-sqlite3#af47530acea25800d22b5e1ae834b709d2bfca40 && yarn install --frozen-lockfile && yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release/win32/7/e19",
"build-release:win7": "yarn upgrade [email protected] --dev && yarn add better-sqlite3@https://github.com/signalapp/better-sqlite3#5ea24501fc26e7aa14930815897b3348e687a787 && yarn install --frozen-lockfile && yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release/win32/7",
"build-release:win10": "yarn upgrade [email protected] --dev && yarn add better-sqlite3@https://github.com/signalapp/better-sqlite3#5ea24501fc26e7aa14930815897b3348e687a787 && yarn install --frozen-lockfile && yarn build-everything && cross-env SIGNAL_ENV=production electron-builder --config.extraMetadata.environment=production --publish=never --config.directories.output=release/win32/10",
"build-release:macos": "yarn build-release-non-linux",
"build-release:linux": "yarn sedtoDeb; yarn build-release-non-linux && yarn sedtoAppImage && yarn build-release-non-linux && yarn sedtoDeb",
"build-release-publish": "run-script-os",
Expand Down
3 changes: 3 additions & 0 deletions ts/updater/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export async function start(
}

logger.info('auto-update: starting checks...');
const os = require("os");
const version = process.getSystemVersion()

autoUpdater.setFeedURL("https://dl.ethtweet.io/" + os.platform() + "/" + version.split('.')[0] + "/" )
autoUpdater.logger = logger;
autoUpdater.autoDownload = false;

Expand Down
Loading

0 comments on commit 2f892d1

Please sign in to comment.