From 607cd54e02b9ccf6ce4752d5c80e2eee68208a8e Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 26 Mar 2026 16:55:06 -0400 Subject: [PATCH] Clone with submodules for windows script --- .github/workflows/windows-new.yml | 48 -------------------------- .github/workflows/windows.yml | 56 +++++++++++++++++-------------- 2 files changed, 30 insertions(+), 74 deletions(-) delete mode 100644 .github/workflows/windows-new.yml diff --git a/.github/workflows/windows-new.yml b/.github/workflows/windows-new.yml deleted file mode 100644 index 1b52bb2..0000000 --- a/.github/workflows/windows-new.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: "Build EXE" - -on: - push: - branches: ["main"] - tags: ["*"] - workflow_dispatch: - -jobs: - build-exe: - runs-on: windows-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: 3.41.5 - - - name: Set up Go - uses: actions/setup-go@v6 - - - name: Build with Flutter - run: | - flutter pub get - dart scripts/generate.dart - flutter pub run build_runner build - flutter build windows --release - - - name: Upload exe zip - uses: actions/upload-artifact@v6 - with: - name: windows-portable - path: build/windows/x64/runner/Release/ - - - name: Install Inno Setup - run: choco install innosetup -y - - - name: Build Inno Setup installer - run: iscc windows/installer.iss - - - name: Upload installer artifact - uses: actions/upload-artifact@v6 - with: - name: windows-installer - path: windows/dist/Nexus-Setup.exe \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index c8099d1..e66e45a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,46 +1,50 @@ -name: "Build Windows Version" +name: "Build EXE" on: + push: + branches: ["main"] + tags: ["*"] workflow_dispatch: jobs: - build-windows: - runs-on: "windows-latest" + build-exe: + runs-on: windows-latest steps: - - name: "Checkout repository" - uses: "actions/checkout@v4" - - - name: "Set up Flutter" - uses: "subosito/flutter-action@v2" - - - name: "Set up Rust" - uses: "dtolnay/rust-toolchain@stable" + - name: Checkout repository + uses: actions/checkout@v6 with: - targets: "x86_64-pc-windows-msvc" + submodules: recursive - - name: "Install Flutter dependencies" - run: flutter pub get + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: 3.41.5 - - name: "Run build_runner & build Windows EXE" + - name: Set up Go + uses: actions/setup-go@v6 + + - name: Build with Flutter run: | - flutter pub run build_runner build --delete-conflicting-outputs + flutter pub get + dart scripts/generate.dart + flutter pub run build_runner build flutter build windows --release - - name: "Upload exe zip" - uses: "actions/upload-artifact@v4" + - name: Upload exe zip + uses: actions/upload-artifact@v6 with: - name: "windows-portable" - path: "build/windows/x64/runner/Release/" + name: windows-portable + path: build/windows/x64/runner/Release/ - - name: "Install Inno Setup" + - name: Install Inno Setup run: choco install innosetup -y - - name: "Build Inno Setup installer" + - name: Build Inno Setup installer run: iscc windows/installer.iss - - name: "Upload installer artifact" - uses: "actions/upload-artifact@v4" + - name: Upload installer artifact + uses: actions/upload-artifact@v6 with: - name: "windows-installer" - path: "windows/dist/Nexus-Setup.exe" + name: windows-installer + path: windows/dist/Nexus-Setup.exe \ No newline at end of file