mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
version suffix for beta
This commit is contained in:
parent
560a7f1d93
commit
a5bd4bb0e5
|
@ -85,7 +85,10 @@ module.exports = function(grunt) {
|
|||
replacement: function() { return '\n'; }
|
||||
}]})},
|
||||
{ test: /runtime-info\.js$/, loader: StringReplacePlugin.replace({ replacements: [
|
||||
{ pattern: /@@VERSION/g, replacement: function() { return pkg.version; } },
|
||||
{
|
||||
pattern: /@@VERSION/g,
|
||||
replacement: function () { return pkg.version + (grunt.option('beta') ? '-beta' : '') }
|
||||
},
|
||||
{ pattern: /@@DATE/g, replacement: function() { return dt; } },
|
||||
{ pattern: /@@COMMIT/g, replacement: function() { return grunt.config.get('gitinfo.local.branch.current.shortSHA'); } }
|
||||
]})},
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
"start": "grunt",
|
||||
"test": "grunt test",
|
||||
"postinstall": "cd desktop && npm install",
|
||||
"build-beta": "grunt --skip-sign && sed 's/<html manifest=\"manifest.appcache\">//' dist/index.html > ../keeweb-beta/index.html && cd ../keeweb-beta && git add index.html && git commit -a -m 'beta' && git push origin master",
|
||||
"build-beta": "grunt --skip-sign --beta && sed 's/<html manifest=\"manifest.appcache\">//' dist/index.html > ../keeweb-beta/index.html && cd ../keeweb-beta && git add index.html && git commit -a -m 'beta' && git push origin master",
|
||||
"electron": "electron desktop --htmlpath=http://localhost:8085/tmp/"
|
||||
"dev": "grunt dev --skip-sign"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user