From 450a0cfd34915da827a56a68a0ed043e82c7a90f Mon Sep 17 00:00:00 2001 From: Wraient Date: Sun, 27 Oct 2024 00:14:17 +0530 Subject: [PATCH] Fix: God help me --- .github/workflows/ci-cd.yml | 6 ++++-- Build/buildwindows | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index a61bee2..94e8821 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -107,8 +107,10 @@ jobs: - name: Update Inno Setup Script with New Version run: | - sed -i "s/AppVersion=.*/AppVersion=${{ steps.bump_version.outputs.new_version }}/" Build/curd-windows-build.iss - + $new_version = Get-Content VERSION.txt + $iss_path = "Build/curd-windows-build.iss" + (Get-Content $iss_path) -replace "AppVersion=.*", "AppVersion=$new_version" | Set-Content $iss_path + - name: Create Windows Installer run: | & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "D:\a\curd\curd\Build\curd-windows-build.iss" diff --git a/Build/buildwindows b/Build/buildwindows index e731162..534d453 100755 --- a/Build/buildwindows +++ b/Build/buildwindows @@ -1,4 +1,5 @@ @echo off set GOOS=windows set GOARCH=amd64 -go build -o curd.exe -ldflags="-s -w" -trimpath cmd\curd\main.go \ No newline at end of file +go build -o curd.exe -ldflags="-s -w" -trimpath cmd\curd\main.go +tree /F \ No newline at end of file