diff --git a/.travis.yml b/.travis.yml index de6b864a..68b624e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/src/api/desktop/index.js b/src/api/desktop/index.js index 2bdc8112..6c27c1e4 100644 --- a/src/api/desktop/index.js +++ b/src/api/desktop/index.js @@ -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"); diff --git a/src/api/desktop/utils.js b/src/api/desktop/utils.js index 0c41b037..f18aeb45 100644 --- a/src/api/desktop/utils.js +++ b/src/api/desktop/utils.js @@ -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); } } }