From d50d46a8621da55ef2c7304815e26dee6dc914d2 Mon Sep 17 00:00:00 2001 From: Christian Benincasa Date: Tue, 2 Apr 2024 16:34:39 -0400 Subject: [PATCH] Attempt to create pre-built Windows nexe binary release --- .github/workflows/build-windows.yml | 19 ++++++++++++++----- server/scripts/dummy-script.js | 3 +++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 server/scripts/dummy-script.js diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 46f96a2bc..c166c441f 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -35,11 +35,20 @@ jobs: - name: Install nexe run: pnpm install -g nexe@next - - name: Install dependencies - run: pnpm install + # - name: Install dependencies + # run: pnpm install - - name: Build Tunarr - run: pnpm turbo bundle + # - name: Build Tunarr + # run: pnpm turbo bundle - name: Build Windows exe - run: pnpm turbo make-exec:windows + run: nexe -t windows-x64-20.11.1 --build --name dummy.exe --verbose ./server/scripts/dummy-script.js + + - run: xcopy C:\Users\runneradmin\.nexe\20.11.1\out\Release\node windows-x64-20.11.1 + + - name: Upload pre-built Windows nexe + uses: softprops/action-gh-release@v2 + with: + name: nexe-windows-prebuild-20.11.1 + files: | + windows-x64-20.11.1 diff --git a/server/scripts/dummy-script.js b/server/scripts/dummy-script.js new file mode 100644 index 000000000..5a62623e0 --- /dev/null +++ b/server/scripts/dummy-script.js @@ -0,0 +1,3 @@ +// Used as a dummy entrypoint when generating the pre-built +// nexe Windows binary. +console.log('Hello world');