From 1f95a23d1dd9834e881ec750fad0934bc7127f78 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 23 Sep 2021 10:44:37 -0700 Subject: [PATCH 1/2] Revert "fix: run postinstall script explicitly with bash (#4116)" This reverts commit b32b4edf3d1167f87cb3f4aaf1acd3d5378cefb3. We are reverting this because we found out that while this fixes the postinstall on Windows, it breaks it on mac and other devices. See: https://github.com/cdr/code-server/issues/3874#issuecomment-925397980 --- ci/build/build-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build/build-release.sh b/ci/build/build-release.sh index c5c28e814..0d6ab4f5a 100755 --- a/ci/build/build-release.sh +++ b/ci/build/build-release.sh @@ -49,7 +49,7 @@ bundle_code_server() { { "commit": "$(git rev-parse HEAD)", "scripts": { - "postinstall": "bash ./postinstall.sh" + "postinstall": "./postinstall.sh" } } EOF From 014faf5b1cac866bf9a645429bc3fd014efc79f7 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 23 Sep 2021 11:41:51 -0700 Subject: [PATCH 2/2] feat: use sh in postinstall in build-release.sh --- ci/build/build-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build/build-release.sh b/ci/build/build-release.sh index 0d6ab4f5a..ba3193513 100755 --- a/ci/build/build-release.sh +++ b/ci/build/build-release.sh @@ -49,7 +49,7 @@ bundle_code_server() { { "commit": "$(git rev-parse HEAD)", "scripts": { - "postinstall": "./postinstall.sh" + "postinstall": "sh ./postinstall.sh" } } EOF