tweak plugin installer

pull/282/head
nightwing 2016-03-25 01:37:23 +00:00
rodzic b59d55d0e8
commit ab69dc8d23
3 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -90,7 +90,7 @@
"c9.ide.help.support": "#af5c4055b2",
"c9.ide.imgeditor": "#612e75ef4f",
"c9.ide.immediate": "#19758abe08",
"c9.ide.installer": "#0fde9f0067",
"c9.ide.installer": "#cad8f8316d",
"c9.ide.language.python": "#330b80e3b2",
"c9.ide.language.go": "#6ce1c7a7ef",
"c9.ide.mount": "#4c39359b87",

Wyświetl plik

@ -653,6 +653,10 @@ define(function(require, exports, module) {
p = "/" + normalizePath(Path.relative(cwd, p));
excludeMap[p] = 1;
});
// keep installer in both packed and unpacked form
if (json.installer)
excludeMap["/" + normalizePath(Path.relative(cwd, json.installer))] = 0;
copy(cwd, cwd + "/.c9/.build", {
exclude: function(name, parent) {
if (excludeRe.test(name))

Wyświetl plik

@ -577,7 +577,7 @@ define(function(require, exports, module) {
function setAPIKey(apikey){
// Validate Key
if (!apikey || !apikey.match(/[\w+]{27}=/))
if (!apikey || !apikey.match(/^.{27}=$/))
throw new Error("Invalid API key");
return {