From da062a5e1a121cf5da26dd89ff43a46387023195 Mon Sep 17 00:00:00 2001 From: Sean Boult <996134+Hacksore@users.noreply.github.com> Date: Wed, 22 Nov 2023 22:32:36 -0600 Subject: [PATCH] Update --- .github/workflows/ci.yaml | 2 +- scripts/actions/download-draft-bins.js | 2 +- scripts/sign-windows.sh | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 scripts/sign-windows.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8b511d0b..422f4b10 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -55,7 +55,7 @@ jobs: args: --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }},updater env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload unstable ${{ matrix.platform }} + - name: Upload unstable ${{ matrix.setting.os }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.platform }} diff --git a/scripts/actions/download-draft-bins.js b/scripts/actions/download-draft-bins.js index c1128598..ce88ca1e 100644 --- a/scripts/actions/download-draft-bins.js +++ b/scripts/actions/download-draft-bins.js @@ -12,7 +12,7 @@ async function downloadFile(url, filepath = "./download") { Authorization: `token ${GITHUB_TOKEN}`, }, }); - // @ts-ignore + const body = Readable.fromWeb(response.body); const downloadWriteStream = fs.createWriteStream(filepath); await finished(body.pipe(downloadWriteStream)); diff --git a/scripts/sign-windows.sh b/scripts/sign-windows.sh new file mode 100755 index 00000000..d1436f3f --- /dev/null +++ b/scripts/sign-windows.sh @@ -0,0 +1,8 @@ +# op run --env-file .env -- ./test.sh +docker run -it --rm -v "./binaries/:/code/binaries" ghcr.io/sslcom/codesigner:latest batch_sign \ + -username=${ES_USERNAME} \ + -password=${ES_PASSWORD} \ + -credential_id=${ES_CREDENTIAL_ID} \ + -totp_secret=${ES_TOTP_SECRET} \ + -input_dir_path="/code/binaries" \ + -output_dir_path="/code/binaries/signed"