Revert "Revert "add beta/dev to userscript names so beta/developement versions can be installed alongside stable""
This reverts commit dbea116828854ad7982e46649aa6e7c9c9346e84.
This commit is contained in:
parent
a74a43a7e1
commit
0ec7fca9b8
@ -103,7 +103,9 @@ module.exports = (grunt) ->
|
||||
src: '*'
|
||||
dest: 'builds/'
|
||||
expand: true
|
||||
filter: 'isFile'
|
||||
filter: (src) ->
|
||||
pkg = grunt.config 'pkg'
|
||||
grunt.file.isFile(src) and src isnt "testbuilds/#{pkg.name}#{pkg.meta.suffix.dev}.user.js"
|
||||
|
||||
coffee:
|
||||
script:
|
||||
@ -194,7 +196,11 @@ module.exports = (grunt) ->
|
||||
builds: 'builds'
|
||||
testbuilds: 'testbuilds'
|
||||
tmpcrx: ['tmp-crx', 'testbuilds/updates<%= pkg.meta.suffix.noupdate %>.xml']
|
||||
tmpuserscript: ['tmp-userscript', 'testbuilds/<%= pkg.name %><%= pkg.meta.suffix.noupdate %>.meta.js']
|
||||
tmpuserscript: [
|
||||
'tmp-userscript',
|
||||
'testbuilds/<%= pkg.name %><%= pkg.meta.suffix.noupdate %>.meta.js',
|
||||
'testbuilds/<%= pkg.name %><%= pkg.meta.suffix.dev %>.meta.js'
|
||||
]
|
||||
|
||||
markdown:
|
||||
web:
|
||||
@ -268,6 +274,8 @@ module.exports = (grunt) ->
|
||||
'concat:userscript'
|
||||
'set-channel:noupdate'
|
||||
'concat:userscript'
|
||||
'set-channel:dev'
|
||||
'concat:userscript'
|
||||
'clean:tmpuserscript'
|
||||
]
|
||||
|
||||
|
||||
@ -22,7 +22,14 @@
|
||||
"suffix": {
|
||||
"stable": "",
|
||||
"beta": "-beta",
|
||||
"noupdate": "-noupdate"
|
||||
"noupdate": "-noupdate",
|
||||
"dev": "-dev"
|
||||
},
|
||||
"namesuffix": {
|
||||
"stable": "",
|
||||
"beta": " beta",
|
||||
"noupdate": "",
|
||||
"dev": " dev"
|
||||
},
|
||||
"min": {
|
||||
"chrome": "32",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// ==UserScript==
|
||||
// @name <%= meta.name %>
|
||||
// @name <%= meta.name %><%= meta.namesuffix[channel] %>
|
||||
// @version <%= meta.version %>
|
||||
// @minGMVer <%= meta.min.greasemonkey %>
|
||||
// @minFFVer <%= meta.min.firefox %>
|
||||
@ -18,7 +18,7 @@
|
||||
// @grant GM_openInTab
|
||||
// @grant GM_xmlhttpRequest
|
||||
// @run-at document-start
|
||||
<% if (channel !== 'noupdate') { %>// @updateURL <%= meta.downloads %><%= name %><%= meta.suffix[channel] %>.meta.js
|
||||
<% if (channel !== 'dev') { %><% if (channel !== 'noupdate') { %>// @updateURL <%= meta.downloads %><%= name %><%= meta.suffix[channel] %>.meta.js
|
||||
<% } %>// @downloadURL <%= meta.downloads %><%= name %><%= meta.suffix[channel] %>.user.js
|
||||
// @icon data:image/png;base64,<%= grunt.file.read('src/General/img/icon48.png', {encoding: 'base64'}) %>
|
||||
<% } %>// @icon data:image/png;base64,<%= grunt.file.read('src/General/img/icon48.png', {encoding: 'base64'}) %>
|
||||
// ==/UserScript==
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user