File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const util = require('./lib/util');
1515const packageJson = require ( '../package.json' ) ;
1616const product = require ( '../product.json' ) ;
1717const rpmDependencies = require ( '../resources/linux/rpm/dependencies.json' ) ;
18+ const commit = util . getVersion ( root ) ;
1819
1920const 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 : '.' } )
You can’t perform that action at this time.
0 commit comments