Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Deploy to Snapcraft stable channel by default (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored May 27, 2020
1 parent 9d4bb49 commit e04aac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const glob = require('glob');
const del = require('del');
const { getSignVendorPath } = require('app-builder-lib/out/codeSign/windowsCodeSign');
const { notarize } = require('electron-notarize');
const semver = require('semver');

const packageJson = require('./package.json');

// https://stackoverflow.com/a/17466459
const runCmd = (cmd, args, callBack) => {
Expand Down Expand Up @@ -90,7 +92,7 @@ const opts = {
publish: [
{
provider: 'snapStore',
channels: ['edge'],
channels: [semver.prerelease(packageJson.version) ? 'edge' : 'stable'],
},
'github',
],
Expand Down

0 comments on commit e04aac5

Please sign in to comment.