Commit 53d134f66f

53d134f66f001d17fc4c66c271dff11265eb5719

parent: bf2f43b58e

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-26 18:27 UTC

Fix: Fixing forever

Layout: unified · split

.github/workflows/ci-cd.yml +23 −10
@@ -53,11 +53,6 @@ jobs:
5353 # run: |
5454 # git checkout -- internal/player.go
5555
56 - name: Build Windows binary
57 run: |
58 chmod +x Build/buildwindows
59 ./Build/buildwindows
60
6156 # - name: Run Tests
6257 # run: go test ./... # Run tests for your Go code
6358
@@ -70,6 +65,20 @@ jobs:
7065 - name: Checkout code
7166 uses: actions/checkout@v2
7267
68 - name: Set up Go
69 uses: actions/setup-go@v2
70 with:
71 go-version: '1.23.2'
72
73 - name: Install Dependencies
74 run: go mod tidy # Install Go dependencies
75
76 - name: Build Windows binary # Run the build script to generate curd.exe
77 run: |
78 cd Build # Navigate to Build directory
79 chmod +x buildwindows
80 ./buildwindows
81
7382 - name: Download Inno Setup # Clean up
7483 run: |
7584 Invoke-WebRequest -Uri "https://jrsoftware.org/download.php/is.exe" -OutFile "is.exe" # Download Inno Setup installer
@@ -78,11 +87,6 @@ jobs:
7887
7988 - name: List Build Directory
8089 run: dir
81
82 - name: Create Windows Installer
83 run: |
84 & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" Build/curd-windows-build.iss # Adjust the path to your Inno Setup script
85 shell: pwsh # Use PowerShell shell
8690
8791 - name: Bump Version
8892 id: bump_version
@@ -100,6 +104,15 @@ jobs:
100104 git commit -m "Bump version to $new_version"
101105 git tag "v$new_version"
102106
107 - name: Update Inno Setup Script with New Version
108 run: |
109 sed -i "s/AppVersion=.*/AppVersion=${{ steps.bump_version.outputs.new_version }}/" Build/curd-windows-build.iss
110
111 - name: Create Windows Installer
112 run: |
113 & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "D:\a\curd\curd\Build\curd-windows-build.iss"
114 shell: pwsh
115
103116 - name: Create Release
104117 id: create_release
105118 uses: softprops/action-gh-release@v1
Build/buildwindows +4 −1
@@ -1 +1,4 @@
1GOOS=windows GOARCH=amd64 go build -o Build/curd/curd.exe -ldflags="-s -w" cmd/curd/main.go
\ No newline at end of file
1@echo off
2set GOOS=windows
3set GOARCH=amd64
4go build -o curd.exe -ldflags="-s -w" -trimpath cmd\curd\main.go
\ No newline at end of file
Build/curd-windows-build.iss +1 −1
@@ -15,7 +15,7 @@ Name: "desktopicon"; Description: "Create a &desktop shortcut"; GroupDescription
1515
1616[Files]
1717; Copy the Curd executable to the install directory
18Source: "Build/curd/curd.exe"; DestDir: "{app}"; Flags: ignoreversion
18Source: "Build/curd.exe"; DestDir: "{app}"; Flags: ignoreversion
1919Source: "Build/mpv.exe"; DestDir: "{app}\bin"; Flags: ignoreversion
2020
2121[Icons]