Skip to content

Commit a2deea6

Browse files
committed
snap package version should be commit ID
1 parent d2024ca commit a2deea6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/gulpfile.vscode.linux.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const util = require('./lib/util');
1515
const packageJson = require('../package.json');
1616
const product = require('../product.json');
1717
const rpmDependencies = require('../resources/linux/rpm/dependencies.json');
18+
const commit = util.getVersion(root);
1819

1920
const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
2021

@@ -197,7 +198,7 @@ function prepareSnapPackage(arch) {
197198

198199
const snapcraft = gulp.src('resources/linux/snap/snapcraft.yaml', { base: '.' })
199200
.pipe(replace('@@NAME@@', product.applicationName))
200-
.pipe(replace('@@VERSION@@', `${packageJson.version}-${linuxPackageRevision}`))
201+
.pipe(replace('@@VERSION@@', commit))
201202
.pipe(rename('snap/snapcraft.yaml'));
202203

203204
const snapUpdate = gulp.src('resources/linux/snap/snapUpdate.sh', { base: '.' })

0 commit comments

Comments
 (0)