diff --git a/editor/apps.ts b/editor/apps.ts index 81f6fc6b..a2d2d675 100644 --- a/editor/apps.ts +++ b/editor/apps.ts @@ -655,7 +655,13 @@ module TDev.AppExport didRedeploy = true msg.setChildren(lf("redeploying shell...")); return getProfile() - .then(() => wa.userPWD ? Util.httpPostJsonAsync(deployEndpoint("deploytdconfig"), mkFtp()) : null) + .then(() => { + if (!wa.userPWD) return null + var d:any = mkFtp() + d.pkgShell = (TDev).pkgShell + d.shellVersion = Runtime.shellVersion + return Util.httpPostJsonAsync(deployEndpoint("deploytdconfig"), d) + }) .then(resp => { if (isDeployError(resp)) return if (resp && resp.config && resp.config.deploymentKey) return final(resp.config) diff --git a/noderunner/nrunner.ts b/noderunner/nrunner.ts index 03ce10a3..d27f194b 100644 --- a/noderunner/nrunner.ts +++ b/noderunner/nrunner.ts @@ -884,9 +884,9 @@ var deployHandlers = { jsFile: jsPath, timestamp: Date.now(), timestampText: new Date().toString(), - shellVersion: TDev.Runtime.shellVersion, + shellVersion: ar.data.shellVersion || TDev.Runtime.shellVersion, } - var files = (TDev).pkgShell + var files = ar.data.pkgShell || (TDev).pkgShell var names = Object.keys(files) var sendOne = (i:number) => { if (i < names.length) {