Skip to content

Commit dde7cdd

Browse files
committed
Add beta update functionality
1 parent 4c148e0 commit dde7cdd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kap",
3-
"productName": "Kap",
4-
"version": "1.0.1",
3+
"productName": "Kap Beta",
4+
"version": "2.0.0-beta.2",
55
"description": "The best way to record your screen",
66
"license": "MIT",
77
"repository": "wulkano/kap",

app/src/main/auto-updater.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import ms from 'ms';
44
import {log} from '../common/logger';
55
import reporter from '../common/reporter';
66

7-
const FEED_URL = `https://kap-updates.now.sh/update/osx/${app.getVersion()}`;
7+
const URL_APP_NAME = app.getName() === 'Kap Beta' ? 'kap-beta' : 'kap';
8+
const FEED_URL = `https://${URL_APP_NAME}-updates.now.sh/update/macos/${app.getVersion()}`;
89

910
function createInterval() {
1011
return setInterval(() => {

build/icon.icns

371 KB
Binary file not shown.

0 commit comments

Comments
 (0)