From caa699c6518f782a23c78504a7100fe3d56b62e0 Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Wed, 17 Jul 2024 21:35:05 -0500 Subject: [PATCH 01/10] fix ci --- .gitea/workflows/pull-request-ci.yaml | 6 ++++++ .gitea/workflows/push-ci.yaml | 6 ++++++ .gitea/workflows/tag-release.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/.gitea/workflows/pull-request-ci.yaml b/.gitea/workflows/pull-request-ci.yaml index 0261cab..777f4f6 100644 --- a/.gitea/workflows/pull-request-ci.yaml +++ b/.gitea/workflows/pull-request-ci.yaml @@ -14,6 +14,8 @@ jobs: - name: Setup go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -43,6 +45,8 @@ jobs: - name: Set up go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -75,6 +79,8 @@ jobs: - name: Set up go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true diff --git a/.gitea/workflows/push-ci.yaml b/.gitea/workflows/push-ci.yaml index 03e0505..660cd9a 100644 --- a/.gitea/workflows/push-ci.yaml +++ b/.gitea/workflows/push-ci.yaml @@ -15,6 +15,8 @@ jobs: - name: Setup go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -44,6 +46,8 @@ jobs: - name: Set up go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -76,6 +80,8 @@ jobs: - name: Set up go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index f8048b8..bdfdc9c 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -16,6 +16,8 @@ jobs: - name: Setup go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -45,6 +47,8 @@ jobs: - name: Set up go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -75,6 +79,8 @@ jobs: - name: Setup go uses: actions/setup-go@v5 + volumes: + - act-toolcache:/toolcache with: go-version-file: 'go.mod' -- 2.39.5 From d46a142312e3620646b92a2c412c3a309dc6f86e Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Wed, 17 Jul 2024 22:23:27 -0500 Subject: [PATCH 02/10] test --- .gitea/workflows/pull-request-ci.yaml | 6 ------ .gitea/workflows/push-ci.yaml | 9 +++------ .gitea/workflows/tag-release.yaml | 6 ------ 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/pull-request-ci.yaml b/.gitea/workflows/pull-request-ci.yaml index 777f4f6..0261cab 100644 --- a/.gitea/workflows/pull-request-ci.yaml +++ b/.gitea/workflows/pull-request-ci.yaml @@ -14,8 +14,6 @@ jobs: - name: Setup go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -45,8 +43,6 @@ jobs: - name: Set up go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -79,8 +75,6 @@ jobs: - name: Set up go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true diff --git a/.gitea/workflows/push-ci.yaml b/.gitea/workflows/push-ci.yaml index 660cd9a..c5217f8 100644 --- a/.gitea/workflows/push-ci.yaml +++ b/.gitea/workflows/push-ci.yaml @@ -13,10 +13,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: test log + run: env | sort + - name: Setup go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -46,8 +47,6 @@ jobs: - name: Set up go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -80,8 +79,6 @@ jobs: - name: Set up go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index bdfdc9c..f8048b8 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -16,8 +16,6 @@ jobs: - name: Setup go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -47,8 +45,6 @@ jobs: - name: Set up go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' check-latest: true @@ -79,8 +75,6 @@ jobs: - name: Setup go uses: actions/setup-go@v5 - volumes: - - act-toolcache:/toolcache with: go-version-file: 'go.mod' -- 2.39.5 From 2dbc72bd395994f391dd380ed1bf9f74f52af702 Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Wed, 17 Jul 2024 22:37:21 -0500 Subject: [PATCH 03/10] minor cleanup of artifact names --- .gitea/workflows/pull-request-ci.yaml | 4 ++-- .gitea/workflows/push-ci.yaml | 4 ++-- .gitea/workflows/tag-release.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/pull-request-ci.yaml b/.gitea/workflows/pull-request-ci.yaml index 0261cab..fc8b3f4 100644 --- a/.gitea/workflows/pull-request-ci.yaml +++ b/.gitea/workflows/pull-request-ci.yaml @@ -95,7 +95,7 @@ jobs: - name: Build for linux run: | - fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH} + fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}-${BUILD}-${GOOS}-${GOARCH} env: VERSION: ${{github.ref_name}} BUILD: ${{github.run_number}} @@ -107,7 +107,7 @@ jobs: - name: Build for windows run: | - fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}.exe + fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}-${BUILD}-${GOOS}-${GOARCH}.exe env: VERSION: ${{github.ref_name}} BUILD: ${{github.run_number}} diff --git a/.gitea/workflows/push-ci.yaml b/.gitea/workflows/push-ci.yaml index c5217f8..93bcc14 100644 --- a/.gitea/workflows/push-ci.yaml +++ b/.gitea/workflows/push-ci.yaml @@ -99,7 +99,7 @@ jobs: - name: Build for linux run: | - fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH} + fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}-${BUILD}-${GOOS}-${GOARCH} ls bin env: VERSION: ${{github.ref_name}} @@ -111,7 +111,7 @@ jobs: - name: Build for windows run: | - fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}.exe + fyne build --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION}-${BUILD}-${GOOS}-${GOARCH}.exe ls bin env: VERSION: ${{github.ref_name}} diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index f8048b8..af064d3 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -92,7 +92,7 @@ jobs: - name: Build for linux run: | - fyne build --release --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION#v}.${BUILD}-${GOOS}-${GOARCH} + fyne build --release --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION#v}-${BUILD}-${GOOS}-${GOARCH} env: VERSION: ${{github.ref_name}} BUILD: ${{github.run_number}} @@ -104,7 +104,7 @@ jobs: - name: Build for windows run: | - fyne build --release --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION#v}.${BUILD}-${GOOS}-${GOARCH}.exe + fyne build --release --os=${GOOS} --metadata BuildVersion=${VERSION} --metadata BuildNumber=${BUILD} -o bin/swiped-mod-switcher-${VERSION#v}-${BUILD}-${GOOS}-${GOARCH}.exe env: VERSION: ${{github.ref_name}} BUILD: ${{github.run_number}} -- 2.39.5 From 42af2d6d250d4dc3727679d5c92f9c15ce17551f Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Wed, 17 Jul 2024 23:27:22 -0500 Subject: [PATCH 04/10] remove toolcache env its hardcoded in the runners config now --- .gitea/workflows/pull-request-ci.yaml | 6 ------ .gitea/workflows/push-ci.yaml | 6 ------ .gitea/workflows/tag-release.yaml | 4 ---- 3 files changed, 16 deletions(-) diff --git a/.gitea/workflows/pull-request-ci.yaml b/.gitea/workflows/pull-request-ci.yaml index fc8b3f4..17062ac 100644 --- a/.gitea/workflows/pull-request-ci.yaml +++ b/.gitea/workflows/pull-request-ci.yaml @@ -5,8 +5,6 @@ on: jobs: lint: name: Lint - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout @@ -34,8 +32,6 @@ jobs: test: name: Test - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout @@ -66,8 +62,6 @@ jobs: build: name: Build - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.gitea/workflows/push-ci.yaml b/.gitea/workflows/push-ci.yaml index 93bcc14..3b8c88a 100644 --- a/.gitea/workflows/push-ci.yaml +++ b/.gitea/workflows/push-ci.yaml @@ -6,8 +6,6 @@ on: jobs: lint: name: Lint - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout @@ -38,8 +36,6 @@ jobs: test: name: Test - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout @@ -70,8 +66,6 @@ jobs: build: name: Build - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index af064d3..c568b1b 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -7,8 +7,6 @@ on: jobs: lint: name: Lint - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout @@ -36,8 +34,6 @@ jobs: test: name: Test - env: - RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout -- 2.39.5 From 0650dabb151ebfeba97b0f66ef2e2367b0207678 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped Date: Fri, 26 Jul 2024 15:10:47 +0000 Subject: [PATCH 05/10] Update .gitea/workflows/tag-release.yaml re-enable release binaries --- .gitea/workflows/tag-release.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index c568b1b..246782c 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -116,9 +116,9 @@ jobs: name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}} path: bin/ - # - name: Release binaries - # uses: https://gitea.com/actions/release-action@main - # with: - # files: |- - # bin/** - # api_key: '${{secrets.RELEASE_TOKEN}}' + - name: Release binaries + uses: https://gitea.com/actions/release-action@main + with: + files: |- + bin/** + api_key: '${{secrets.RELEASE_TOKEN}}' -- 2.39.5 From c1885f174a547dfd36b958ca6f3e4b0e3edba2f0 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped Date: Sun, 11 Aug 2024 04:19:25 +0000 Subject: [PATCH 06/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11e3938..f05d8fa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Swiped Mod Switcher -A simple but effective mod switcher for simple game such as Sims and Cyberpunk 2077. +A simple but effective mod switcher for simple game such as Sims. it works by switching out a games mod folder with one of the ones made by you and placed under the profiles directory. -- 2.39.5 From ba986af8a8266b25f5c51a92365bd3ccc19ea6e8 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot <12+s1d3sw1ped_bot@git.s1d3sw1ped.com> Date: Mon, 31 Aug 2026 21:00:11 -0500 Subject: [PATCH 07/10] Bump Go to 1.27.0 (#30) --- .gitea/workflows/pull-request-ci.yaml | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pull-request-ci.yaml b/.gitea/workflows/pull-request-ci.yaml index 17062ac..1a5a271 100644 --- a/.gitea/workflows/pull-request-ci.yaml +++ b/.gitea/workflows/pull-request-ci.yaml @@ -26,9 +26,9 @@ jobs: run: go mod tidy - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v8 with: - version: latest + version: v2.13.2 test: name: Test diff --git a/go.mod b/go.mod index b2c4376..e6cf63a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module s1d3sw1ped/swipedmodswitcher -go 1.22 +go 1.27.0 require ( fyne.io/fyne/v2 v2.3.5 -- 2.39.5 From b898338b2de6dc399239735c4c2397c227b856e6 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot <12+s1d3sw1ped_bot@git.s1d3sw1ped.com> Date: Mon, 31 Aug 2026 22:14:59 -0500 Subject: [PATCH 08/10] Bump push-ci golangci-lint to v8 / v2.13.2 (#31) --- .gitea/workflows/push-ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/push-ci.yaml b/.gitea/workflows/push-ci.yaml index 3b8c88a..333c41e 100644 --- a/.gitea/workflows/push-ci.yaml +++ b/.gitea/workflows/push-ci.yaml @@ -30,9 +30,9 @@ jobs: run: go mod tidy - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v8 with: - version: latest + version: v2.13.2 test: name: Test -- 2.39.5 From 9e493e68d813d220bac612c2f75b31b37c04d3c9 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot Date: Tue, 1 Sep 2026 19:08:20 +0000 Subject: [PATCH 09/10] docs: Add CONTRIBUTING.md Copy the develop tip contribution guide onto the default branch so defaults and develop share one short CONTRIBUTING.md. --- CONTRIBUTING.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..fed3ca7 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,44 @@ +# Contributing + +## Propose changes + +Open a pull request against `develop`. Keep the default branch for releases and +stable tips; land work on `develop` first. + +Point at an existing issue when one fits. Prefer a short issue that states the +symptom or request before a large PR. + +## Commits + +Subject form: + +``` +area: Imperative summary +``` + +- **Area** is a real package, directory, or subsystem token (`ci:`, `docs:`, + Go package name). Not a lone filename. +- **Imperative** mood: Fix, Add, Remove — not "Fixed" or "This patch…". +- No trailing period. Aim ≤ ~70–75 characters for the whole subject. +- Not conventional-commits (`feat:` / `fix:` / `chore:` as types). + +Body explains **why**. Establish the problem, then say what you are doing. +One logical change per commit; split fix and cleanup. + +## Pull requests + +Title matches the primary commit subject. + +- **What** changed +- **Why** (problem and impact) +- **Test** (concrete steps; "CI green" alone is weak) + +## Issues and closing + +Cite leftover issues by **full URL**. Gitea closes issues when `#N` appears in +merge text, so do not put `#N` in the merge message unless that issue is actually +done. Use `Fixes #N` / `Closes #N` only when the leftover work is finished. + +## License + +License TBD by owner. -- 2.39.5 From 5b2affec8db614024324decda98a782c650f52c2 Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot <12+s1d3sw1ped_bot@git.s1d3sw1ped.com> Date: Wed, 2 Sep 2026 02:23:24 +0000 Subject: [PATCH 10/10] ci: Bump tag-release golangci-lint to v8 --- .gitea/workflows/tag-release.yaml | 13 +++++--- .golangci.yml | 49 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 .golangci.yml diff --git a/.gitea/workflows/tag-release.yaml b/.gitea/workflows/tag-release.yaml index 246782c..2a2816c 100644 --- a/.gitea/workflows/tag-release.yaml +++ b/.gitea/workflows/tag-release.yaml @@ -28,9 +28,10 @@ jobs: run: go mod tidy - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v8 with: - version: latest + version: v2.13.2 + args: --timeout=5m test: name: Test @@ -64,7 +65,10 @@ jobs: release: name: Build versioned release + needs: [lint, test] runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v4 @@ -116,9 +120,10 @@ jobs: name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}} path: bin/ + # Prefer built-in job token (Eva): gitea-release-action@v1 defaults to + # github.token / GITEA_TOKEN — no RELEASE_TOKEN / GIT_PACKAGES_TOKEN. - name: Release binaries - uses: https://gitea.com/actions/release-action@main + uses: https://gitea.com/actions/gitea-release-action@v1 with: files: |- bin/** - api_key: '${{secrets.RELEASE_TOKEN}}' diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..cc77230 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,49 @@ +# .golangci.yml — SwipedModSwitcher (golangci-lint v2) +# Adapted from steamcache2 v2 skeleton; no project-specific path excludes yet. +# Run with: golangci-lint run ./... +version: "2" + +run: + timeout: 5m + modules-download-mode: readonly + +linters: + # Defaults (errcheck, govet, ineffassign, staticcheck, unused, …) plus: + enable: + - misspell + settings: + errcheck: + check-type-assertions: false + check-blank: false + staticcheck: + checks: + - all + - "-ST*" + - "-QF*" + govet: + enable-all: true + disable: + - fieldalignment + - shadow + exclusions: + generated: lax + paths: + - dist + - bin + rules: + - path: _test\.go + linters: + - errcheck + +formatters: + enable: + - goimports + exclusions: + generated: lax + paths: + - dist + - bin + +issues: + max-issues-per-linter: 0 + max-same-issues: 0 -- 2.39.5