@@ -72,8 +72,10 @@ function build-code-server() {
7272 rm -rf " ${codeServerBuildPath} "
7373 mkdir -p " ${codeServerBuildPath} "
7474
75+ local json=" {\" codeServerVersion\" : \" ${codeServerVersion} \" }"
76+
7577 cp -r " ${vscodeBuildPath} /resources/app/extensions" " ${codeServerBuildPath} "
76- node " ${rootPath} /scripts/merge.js" " ${vscodeBuildPath} /resources/app/package.json" " ${rootPath} /scripts/package.json" " ${codeServerBuildPath} /package.json"
78+ node " ${rootPath} /scripts/merge.js" " ${vscodeBuildPath} /resources/app/package.json" " ${rootPath} /scripts/package.json" " ${codeServerBuildPath} /package.json" " ${json} "
7779 node " ${rootPath} /scripts/merge.js" " ${vscodeBuildPath} /resources/app/product.json" " ${rootPath} /scripts/product.json" " ${codeServerBuildPath} /product.json"
7880 cp -r " ${vscodeSourcePath} /out" " ${codeServerBuildPath} "
7981 rm -rf " ${codeServerBuildPath} /out/vs/server/node_modules"
@@ -187,12 +189,7 @@ function vstar-task() {
187189}
188190
189191function package-task() {
190- local version=" ${1} " ; shift
191-
192- log " version: ${version} "
193-
194- local archiveName=" code-server${version} -vsc${vscodeVersion} -${target} -${arch} "
195- local archivePath=" ${releasePath} /${archiveName} "
192+ local archivePath=" ${releasePath} /${binaryName} "
196193 rm -rf " ${archivePath} "
197194 mkdir -p " ${archivePath} "
198195
@@ -203,10 +200,10 @@ function package-task() {
203200
204201 cd " ${releasePath} "
205202 if [[ " ${target} " == " linux" ]] ; then
206- tar -czf " ${archiveName } .tar.gz" " ${archiveName } "
203+ tar -czf " ${binaryName } .tar.gz" " ${binaryName } "
207204 log " Archive: ${archivePath} .tar.gz"
208205 else
209- zip -r " ${archiveName } .zip" " ${archiveName } "
206+ zip -r " ${binaryName } .zip" " ${binaryName } "
210207 log " Archive: ${archivePath} .zip"
211208 fi
212209}
@@ -226,6 +223,7 @@ function binary-task() {
226223
227224function main() {
228225 local task=" ${1} " ; shift
226+ local codeServerVersion=" ${1} " ; shift
229227 local vscodeVersion=" ${1} " ; shift
230228 local target=" ${1} " ; shift
231229 local arch=" ${1} " ; shift
@@ -262,13 +260,14 @@ function main() {
262260 local vscodeSourcePath=" ${buildPath} /${vscodeSourceName} "
263261 local vscodeBuildPath=" ${buildPath} /${vscodeBuildName} "
264262
265- local codeServerBuildName=" code-server- ${vscodeVersion} -${target} -${arch} -built"
263+ local codeServerBuildName=" code-server${codeServerVersion} -vsc ${vscodeVersion} -${target} -${arch} -built"
266264 local codeServerBuildPath=" ${buildPath} /${codeServerBuildName} "
267- local binaryName=" code-server- ${vscodeVersion} -${target} -${arch} "
265+ local binaryName=" code-server${codeServerVersion} -vsc ${vscodeVersion} -${target} -${arch} "
268266
269267 log " Running ${task} task"
270268 log " rootPath: ${rootPath} "
271269 log " outPath: ${outPath} "
270+ log " codeServerVersion: ${codeServerVersion} "
272271 log " vscodeVersion: ${vscodeVersion} "
273272 log " target: ${target} "
274273 log " arch: ${arch} "
0 commit comments