diff --git a/scripts/package.json b/scripts/package.json new file mode 100644 index 000000000..234792c36 --- /dev/null +++ b/scripts/package.json @@ -0,0 +1,3 @@ +{ + "name": "code-server" +} diff --git a/scripts/product.json b/scripts/product.json new file mode 100644 index 000000000..4e8640691 --- /dev/null +++ b/scripts/product.json @@ -0,0 +1,19 @@ +{ + "nameShort": "code-server", + "nameLong": "code-server", + "applicationName": "code-server", + "dataFolderName": ".code-server", + "win32MutexName": "codeserver", + "win32DirName": "Code Server", + "win32NameVersion": "Code Server", + "win32RegValueName": "CodeServer", + "win32AppId": "", + "win32x64AppId": "", + "win32UserAppId": "", + "win32x64UserAppId": "", + "win32AppUserModelId": "CodeServer", + "win32ShellNameShort": "C&ode Server", + "darwinBundleIdentifier": "com.code.server", + "linuxIconName": "com.code.server", + "urlProtocol": "code-server" +} diff --git a/scripts/tasks.bash b/scripts/tasks.bash index 6e6d143ba..d0fdc418b 100755 --- a/scripts/tasks.bash +++ b/scripts/tasks.bash @@ -56,7 +56,8 @@ function build-code-server() { mkdir -p "${codeServerBuildPath}" cp -r "${vscodeBuildPath}/resources/app/extensions" "${codeServerBuildPath}" - cp -r "${vscodeBuildPath}/resources/app/"*.json "${codeServerBuildPath}" + jq -s '.[0] * .[1]' "${vscodeBuildPath}/resources/app/package.json" "${rootPath}/scripts/package.json" > "${codeServerBuildPath}/package.json" + jq -s '.[0] * .[1]' "${vscodeBuildPath}/resources/app/product.json" "${rootPath}/scripts/product.json" > "${codeServerBuildPath}/product.json" cp -r "${vscodeSourcePath}/out" "${codeServerBuildPath}" rm -rf "${codeServerBuildPath}/out/vs/server/node_modules" cp -r "${vscodeSourcePath}/remote/node_modules" "${codeServerBuildPath}"