From 94e7c5ce71321d0b28d692b328ec69f5f95ea85f Mon Sep 17 00:00:00 2001 From: s2 Date: Sun, 7 Jun 2020 19:48:06 +0200 Subject: [PATCH] don't publish by default in electron builder --- app/main.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.js b/app/main.js index 0eef20ad..5ebddf37 100644 --- a/app/main.js +++ b/app/main.js @@ -17,7 +17,7 @@ let repoRootDir = repoDir; //auto update stuff setTimeout(() => { gau.checkForUpdate({ - currentVersion: '1.0.0', //app.getVersion(), + currentVersion: app.getVersion(), repo: 'https://api.github.com/repos/S2-/gitlit/releases/latest', assetMatch: /.+setup.+exe/i }); diff --git a/package.json b/package.json index 67eb31ec..6c2bc619 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ }, "scripts": { "start": "electron .", - "pack": "electron-builder --linux --win portable nsis --dir", - "dist": "electron-builder --linux --win portable nsis" + "pack": "electron-builder --linux --win portable nsis --dir --publish=never", + "dist": "electron-builder --linux --win portable nsis --publish=never" }, "repository": { "type": "git",