зеркало из https://github.com/mozilla/Spoke.git
Merge branch 'master' of https://github.com/robertlong/hubs-editor
This commit is contained in:
Коммит
fb5d522362
|
@ -17,7 +17,9 @@ script:
|
|||
- npx qbrt package --linux desktop
|
||||
- cp hubs-editor.tgz hubs-editor.linux.tgz
|
||||
before_deploy:
|
||||
- git tag "$(date +'%Y-%m-%d')_$(git log --format=%h -1)"
|
||||
- git config --local user.name "hubs-editor bot"
|
||||
- git config --local user.email "hubs-editor-bot@mozilla.com"
|
||||
- git tag "$(date +'%Y-%m-%d_%H-%M-%S')_$(git log --format=%h -1)"
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
|
|
@ -28,6 +28,7 @@ let APP_DIR_PATH;
|
|||
let RESOURCES_PATH;
|
||||
|
||||
export async function init() {
|
||||
// Get the Gecko Runtime Engine path
|
||||
const gredPath = Services.dirsvc.get("GreD", Components.interfaces.nsIFile).path;
|
||||
const webappPath = OS.Path.join(gredPath, "webapp");
|
||||
|
||||
|
|
|
@ -18,10 +18,11 @@ export async function copyRecursive(srcPath, destPath) {
|
|||
for (const entry of entries) {
|
||||
const entryDest = OS.Path.join(destPath, entry.name);
|
||||
|
||||
OS.File.copy(entry.path, entryDest);
|
||||
|
||||
if (entry.isDir) {
|
||||
await OS.File.makeDir(entryDest);
|
||||
await copyRecursive(entry.path, entryDest);
|
||||
} else {
|
||||
await OS.File.copy(entry.path, entryDest);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче