Skip to content

Commit

Permalink
Add beta update functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 31, 2017
1 parent 4c148e0 commit dde7cdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kap",
"productName": "Kap",
"version": "1.0.1",
"productName": "Kap Beta",
"version": "2.0.0-beta.2",
"description": "The best way to record your screen",
"license": "MIT",
"repository": "wulkano/kap",
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/auto-updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import ms from 'ms';
import {log} from '../common/logger';
import reporter from '../common/reporter';

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

function createInterval() {
return setInterval(() => {
Expand Down
Binary file modified build/icon.icns
Binary file not shown.

0 comments on commit dde7cdd

Please sign in to comment.