75 Commits

Author SHA1 Message Date
06503ce518 fix typo in tag-release
All checks were successful
CI / Build (push) Successful in 1m38s
CI / Test (push) Successful in 2m4s
CI / Lint (push) Successful in 2m7s
CI / Lint (pull_request) Successful in 1m30s
CI / Test (pull_request) Successful in 1m56s
CI / Build (pull_request) Successful in 1m36s
2024-05-20 04:49:48 -05:00
f8932166bb disable release update until fixed
All checks were successful
CI / Test (push) Successful in 1m10s
CI / Lint (push) Successful in 2m14s
CI / Test (pull_request) Successful in 1m39s
CI / Lint (pull_request) Successful in 1m54s
CI / Build (push) Successful in 3m3s
CI / Build (pull_request) Successful in 2m16s
2024-05-20 04:31:27 -05:00
ffd41348a0 small temporary fix for release updating not working
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Lint (pull_request) Successful in 2m7s
CI / Test (pull_request) Successful in 1m56s
CI / Build (pull_request) Successful in 3m18s
2024-05-20 04:29:53 -05:00
s1d3sw1ped
ff6381575e Merge pull request 'update-develop' (#26) from update-develop into develop
All checks were successful
CI / Lint (push) Successful in 1m35s
CI / Test (push) Successful in 1m27s
CI / Lint (pull_request) Successful in 1m47s
CI / Test (pull_request) Successful in 1m23s
CI / Build (push) Successful in 2m43s
CI / Build (pull_request) Successful in 2m23s
Reviewed-on: #26
2024-05-20 07:21:42 +00:00
s1d3sw1ped
acb4401e37 Merge pull request 'fix-ci' (#25) from fix-ci into master
All checks were successful
CI / Test (push) Successful in 1m39s
CI / Lint (push) Successful in 1m48s
CI / Build (push) Successful in 2m57s
CI / Test (pull_request) Successful in 1m43s
CI / Lint (pull_request) Successful in 1m53s
CI / Build (pull_request) Successful in 2m50s
Reviewed-on: #25
2024-05-20 07:01:22 +00:00
76d8c1744a fix ci stuff for other things
All checks were successful
CI / Test (pull_request) Successful in 1m36s
CI / Lint (pull_request) Successful in 1m39s
CI / Build (pull_request) Successful in 2m39s
2024-05-20 01:58:17 -05:00
s1d3sw1ped
b2bef77f09 Merge pull request 'small typo fix and removed unneeded global variable' (#23) from cleanup_typos into develop
Some checks failed
CI / Lint (push) Failing after 36s
CI / Test (push) Successful in 1m37s
CI / Test (pull_request) Successful in 1m17s
CI / Lint (pull_request) Successful in 1m55s
CI / Build (push) Successful in 2m56s
CI / Build (pull_request) Successful in 2m20s
Reviewed-on: #23
2024-05-20 06:51:53 +00:00
4cbb0666cb add run number to artifacts
All checks were successful
CI / Test (pull_request) Successful in 1m27s
CI / Lint (pull_request) Successful in 2m2s
CI / Build (pull_request) Successful in 2m41s
2024-05-20 01:47:36 -05:00
83cb34001f fyne metadata sucks so jst custom stuff
All checks were successful
CI / Test (pull_request) Successful in 1m17s
CI / Lint (pull_request) Successful in 1m58s
CI / Build (pull_request) Successful in 2m36s
2024-05-20 01:37:58 -05:00
1f09482950 remove version and build from fyneapp.toml
All checks were successful
CI / Test (pull_request) Successful in 1m32s
CI / Lint (pull_request) Successful in 1m57s
CI / Build (pull_request) Successful in 2m41s
2024-05-20 01:00:32 -05:00
1af4d225b5 add os dependencies to lint
All checks were successful
CI / Test (pull_request) Successful in 1m28s
CI / Lint (pull_request) Successful in 1m52s
CI / Build (pull_request) Successful in 2m47s
2024-05-20 00:47:05 -05:00
7863c53280 test
Some checks failed
CI / Lint (pull_request) Failing after 54s
CI / Test (pull_request) Successful in 2m3s
CI / Build (pull_request) Successful in 2m49s
2024-05-20 00:35:08 -05:00
s1d3sw1ped
35d888ec62 Merge pull request 'merge master into develop' (#22) from master into develop
All checks were successful
CI / Lint (push) Successful in 1m10s
CI / Test (push) Successful in 3m38s
CI / Build (push) Successful in 4m9s
Reviewed-on: #22
2024-03-12 05:16:43 +00:00
s1d3sw1ped
15e317b6fe Merge pull request 'fix' (#21) from fix3 into master
All checks were successful
CI / Lint (push) Successful in 50s
CI / Test (push) Successful in 3m32s
CI / Build (push) Successful in 4m4s
CI / Lint (pull_request) Successful in 1m2s
CI / Test (pull_request) Successful in 3m46s
CI / Build (pull_request) Successful in 4m18s
Reviewed-on: #21
2024-03-12 05:03:56 +00:00
07f11c7d22 fix
Some checks failed
CI / Build (pull_request) Has been cancelled
CI / Test (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
2024-03-12 00:03:21 -05:00
s1d3sw1ped
7c28081b65 Merge pull request 'fix' (#20) from fix2 into master
All checks were successful
CI / Lint (push) Successful in 40s
CI / Build (push) Successful in 3m22s
CI / Test (push) Successful in 3m42s
Reviewed-on: #20
2024-03-12 04:56:40 +00:00
d9a75a5e21 fix
Some checks failed
CI / Test (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
CI / Build (pull_request) Has been cancelled
2024-03-11 23:56:22 -05:00
s1d3sw1ped
5da6636dd7 Merge pull request 'blah' (#19) from fix into master
All checks were successful
CI / Lint (push) Successful in 55s
CI / Test (push) Successful in 3m45s
CI / Build (push) Successful in 4m16s
Reviewed-on: #19
2024-03-12 04:40:10 +00:00
b04e653350 blah
Some checks failed
CI / Test (pull_request) Has been cancelled
CI / Build (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
2024-03-11 23:39:24 -05:00
s1d3sw1ped
8469610328 Merge pull request 'ci and general changes' (#18) from ci_and_edits into master
All checks were successful
CI / Lint (push) Successful in 46s
CI / Build (push) Successful in 3m36s
CI / Test (push) Successful in 4m7s
Reviewed-on: #18
2024-03-12 04:06:14 +00:00
9703682b4a try fixing ci again
All checks were successful
CI / Lint (pull_request) Successful in 54s
CI / Build (pull_request) Successful in 3m35s
CI / Test (pull_request) Successful in 4m0s
2024-03-11 21:59:14 -05:00
e281fbafdb ci and general changes
All checks were successful
CI / Lint (pull_request) Successful in 50s
CI / Build (pull_request) Successful in 3m46s
CI / Test (pull_request) Successful in 4m6s
2024-03-11 21:42:16 -05:00
be35430727 please
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Successful in 3m2s
2024-03-11 14:09:01 -05:00
3667bfae52 please
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Successful in 3m12s
2024-03-11 14:01:07 -05:00
8ec9119bc1 please
All checks were successful
CI / Lint (push) Successful in 56s
CI / Test (push) Successful in 3m43s
CI / Build (push) Successful in 4m20s
2024-03-11 12:46:27 -05:00
4924466a93 please
Some checks failed
CI / Lint (push) Successful in 53s
CI / Test (push) Successful in 3m5s
CI / Build (push) Failing after 1m56s
2024-03-11 11:45:17 -05:00
e37e629630 please
Some checks failed
CI / Lint (push) Successful in 49s
CI / Build (push) Failing after 3m2s
CI / Test (push) Successful in 3m32s
2024-03-10 22:08:51 -05:00
e1db654a48 please
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Successful in 2m56s
2024-03-10 22:00:02 -05:00
ee19aadac9 please
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Failing after 1m58s
2024-03-10 21:56:40 -05:00
17b0d9f72e please
Some checks failed
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Successful in 3m2s
2024-03-10 21:46:47 -05:00
99a59b47c2 please
Some checks failed
CI / Lint (push) Successful in 48s
CI / Build (push) Failing after 2m48s
CI / Test (push) Successful in 3m18s
2024-03-10 21:41:26 -05:00
77f83b89f6 Merge branch 'master' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher
All checks were successful
CI / Lint (push) Successful in 56s
CI / Build (push) Successful in 3m12s
CI / Test (push) Successful in 3m37s
2024-03-10 21:23:53 -05:00
s1d3sw1ped
86d4095444 Merge pull request 'cleanup' (#17) from develop into master
All checks were successful
CI / Lint (push) Successful in 48s
CI / Build (push) Successful in 3m0s
CI / Test (push) Successful in 3m20s
Reviewed-on: #17
2024-03-11 02:04:57 +00:00
s1d3sw1ped
3fd22398d3 Merge branch 'master' into develop
Some checks failed
CI / Build (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
CI / Test (pull_request) Has been cancelled
2024-03-11 02:04:40 +00:00
fcb127ef05 cleanup
All checks were successful
CI / Lint (push) Successful in 55s
CI / Lint (pull_request) Successful in 59s
CI / Build (push) Successful in 5m43s
CI / Test (push) Successful in 6m21s
CI / Test (pull_request) Successful in 5m23s
CI / Build (pull_request) Successful in 5m12s
2024-03-10 20:50:04 -05:00
s1d3sw1ped
4cbadb0f6f Merge pull request 'develop' (#16) from develop into master
Some checks failed
CI / Lint (push) Successful in 54s
CI / Test (push) Successful in 4m29s
CI / Build (push) Failing after 10m38s
Reviewed-on: #16
2024-03-10 22:31:10 +00:00
s1d3sw1ped
7ef5780e84 Merge branch 'master' into develop
All checks were successful
CI / Lint (push) Successful in 1m3s
CI / Test (push) Successful in 4m48s
CI / Lint (pull_request) Successful in 48s
CI / Build (push) Successful in 5m44s
CI / Test (pull_request) Successful in 5m9s
CI / Build (pull_request) Successful in 5m18s
2024-03-10 22:30:59 +00:00
7d37c75d64 switched tag-release to new style
All checks were successful
CI / Lint (push) Successful in 47s
CI / Test (push) Successful in 3m22s
CI / Build (push) Successful in 3m58s
CI / Lint (pull_request) Successful in 1m8s
CI / Test (pull_request) Successful in 5m48s
CI / Build (pull_request) Successful in 6m31s
2024-03-10 17:08:56 -05:00
31f3df710a fixed artifact version issue 2024-03-10 17:06:37 -05:00
709a06ffe6 more changes to ci
All checks were successful
CI / Lint (push) Successful in 47s
CI / Test (push) Successful in 3m17s
CI / Build (push) Successful in 3m48s
2024-03-10 17:01:08 -05:00
s1d3sw1ped
777ed46879 Merge pull request 'develop' (#15) from develop into master
All checks were successful
CI / Lint (push) Successful in 43s
CI / Test (push) Successful in 3m43s
CI / Build (push) Successful in 4m19s
Reviewed-on: #15
2024-03-10 21:47:43 +00:00
89dedb9870 oops
All checks were successful
CI / Lint (push) Successful in 48s
CI / Lint (pull_request) Successful in 1m12s
CI / Test (push) Successful in 5m27s
CI / Test (pull_request) Successful in 5m9s
CI / Build (push) Successful in 6m3s
CI / Build (pull_request) Successful in 5m12s
2024-03-10 16:36:44 -05:00
57d8c1b330 fix test and build ci
Some checks failed
CI / Lint (push) Successful in 33s
CI / Lint (pull_request) Successful in 1m6s
CI / Build (push) Failing after 5m33s
CI / Test (push) Successful in 5m46s
CI / Build (pull_request) Failing after 4m35s
CI / Test (pull_request) Successful in 5m27s
2024-03-10 16:24:56 -05:00
4c1de974f0 major ci change
Some checks failed
CI / Lint (push) Successful in 1m14s
CI / Test (push) Failing after 1m7s
CI / Lint (pull_request) Successful in 1m8s
CI / Test (pull_request) Failing after 48s
CI / Build (push) Failing after 4m7s
CI / Build (pull_request) Failing after 3m8s
2024-03-10 16:10:59 -05:00
452fe85d26 Merge branch 'develop' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher into develop
All checks were successful
pull request validation / build and run tests (pull_request) Successful in 3m25s
2024-03-10 15:12:07 -05:00
8de631afa2 no need to checkout the entire repo 2024-03-10 15:12:00 -05:00
s1d3sw1ped
242df40852 Merge branch 'master' into develop
Some checks failed
pull request validation / build and run tests (pull_request) Has been cancelled
build and test / artifact builds on linux and windows (push) Has been cancelled
2024-03-10 19:05:21 +00:00
2c6a8ac7b0 Merge branch 'develop' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher into develop
Some checks failed
build and test / artifact builds on linux and windows (push) Has been cancelled
pull request validation / build and run tests (pull_request) Successful in 4m1s
2024-03-10 14:04:48 -05:00
95caed9b33 fyne cant follow golangs example with getting deps for builds 2024-03-10 14:04:10 -05:00
s1d3sw1ped
39d120b6b4 Merge pull request 'okay fyne' (#14) from develop into master
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 3m7s
Reviewed-on: #14
2024-03-10 18:59:06 +00:00
s1d3sw1ped
66772ad2b5 Merge branch 'master' into develop
Some checks failed
pull request validation / build and run tests (pull_request) Has been cancelled
build and test / artifact builds on linux and windows (push) Has been cancelled
2024-03-10 18:58:59 +00:00
cad13efe95 okay fyne
Some checks failed
build and test / artifact builds on linux and windows (push) Has been cancelled
pull request validation / build and run tests (pull_request) Has been cancelled
2024-03-10 13:57:50 -05:00
s1d3sw1ped
08044c7d46 Merge pull request 'develop' (#13) from develop into master
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 3m54s
Reviewed-on: #13
2024-03-10 18:48:54 +00:00
s1d3sw1ped
bd2f536c5d Merge branch 'master' into develop
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 3m59s
pull request validation / build and run tests (pull_request) Failing after 3m59s
2024-03-10 18:48:44 +00:00
738d0727ed Merge branch 'develop' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher into develop
Some checks failed
build and test / artifact builds on linux and windows (push) Has been cancelled
pull request validation / build and run tests (pull_request) Has been cancelled
2024-03-10 13:47:40 -05:00
d10d83dd05 really fyne why is version so specific 2024-03-10 13:47:37 -05:00
s1d3sw1ped
9fb92a3367 Merge pull request 'get fyne for builds' (#12) from develop into master
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 1m56s
Reviewed-on: #12
2024-03-10 18:40:02 +00:00
s1d3sw1ped
6ba0f1bdea Merge branch 'master' into develop
Some checks failed
pull request validation / build and run tests (pull_request) Has been cancelled
build and test / artifact builds on linux and windows (push) Has been cancelled
2024-03-10 18:39:45 +00:00
6630747d65 Merge branch 'develop' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher into develop
Some checks failed
pull request validation / build and run tests (pull_request) Has been cancelled
build and test / artifact builds on linux and windows (push) Has been cancelled
2024-03-10 13:38:28 -05:00
aaeaebdb03 have to get fyne aswell 2024-03-10 13:38:24 -05:00
s1d3sw1ped
9595f055dd Merge pull request 'lots of things' (#11) from develop into master
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 1m47s
Reviewed-on: #11
2024-03-10 18:33:44 +00:00
s1d3sw1ped
2b224eeee7 Merge branch 'master' into develop
Some checks failed
pull request validation / build and run tests (pull_request) Has been cancelled
build and test / artifact builds on linux and windows (push) Has been cancelled
2024-03-10 18:33:03 +00:00
875202ceb4 should be working builds
Some checks failed
build and test / artifact builds on linux and windows (push) Has been cancelled
pull request validation / build and run tests (pull_request) Has been cancelled
2024-03-10 13:32:21 -05:00
63c5871275 add version info to window title 2024-03-10 13:31:49 -05:00
4da5f46fdd add disclaimer to README 2024-03-10 13:31:22 -05:00
60e7e9e506 add FyneApp.toml 2024-03-10 13:31:11 -05:00
a9624e532a Merge branch 'develop' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher into develop
All checks were successful
build and test / build (push) Successful in 2m37s
2024-03-10 10:54:19 -05:00
f5c621f808 see if this makes windows builds work 2024-03-10 10:54:16 -05:00
s1d3sw1ped
8d07f92c26 Merge pull request 'update was necessary' (#10) from develop into master
All checks were successful
build and test / build (push) Successful in 4m35s
Reviewed-on: #10
2024-03-10 07:23:29 +00:00
s1d3sw1ped
9b44f03a0b Merge branch 'master' into develop
All checks were successful
build and test / build (push) Successful in 4m34s
pull request validation / Build and Test Vulture (pull_request) Successful in 4m50s
2024-03-10 07:23:16 +00:00
32174bfb41 update was necessary
Some checks failed
build and test / build (push) Has been cancelled
pull request validation / Build and Test Vulture (pull_request) Successful in 4m54s
2024-03-10 01:22:53 -06:00
s1d3sw1ped
5c2951884e Merge pull request 'rename actions' (#9) from develop into master
Some checks failed
build and test / build (push) Failing after 33s
Reviewed-on: #9
2024-03-10 07:21:16 +00:00
s1d3sw1ped
c0aced282b Merge branch 'master' into develop
Some checks failed
pull request validation / Build and Test Vulture (pull_request) Failing after 44s
build and test / build (push) Failing after 46s
2024-03-10 07:20:54 +00:00
s1d3sw1ped
9104c1148e Merge pull request 'develop' (#8) from develop into master
Some checks failed
Build and Artifact Vulture / build (push) Failing after 26s
Reviewed-on: #8
2024-03-10 07:18:54 +00:00
58bb19b43f add actions 2024-03-10 00:41:03 -06:00
9 changed files with 420 additions and 102 deletions

View File

@@ -1,28 +0,0 @@
name: build and test
on:
push:
branches:
- "master"
- "develop"
jobs:
build:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: build-linux
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=gcc go build -v -ldflags="-s -w -X 'main.Version=${{github.ref_name}}'" -o bin/sw1ped-mod-switcher-${{github.ref_name}}-linux-amd64
#- name: build-windows
# run: GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw64-gcc go build -v -ldflags="-s -w -X 'main.Version=${{github.ref_name}}'" -o bin/sw1ped-mod-switcher-${{github.ref_name}}-windows-amd64.exe

View File

@@ -1,37 +0,0 @@
name: pull request validation
on:
pull_request:
branches:
- master
- develop
jobs:
build:
name: Build and Test Vulture
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Build
run: go build -v ./...
- name: Run Tests
run: go test -v ./...
- name: Check Vet
run: go vet ./...
- name: Check Formatting
run: |-
gofmt -s -l .
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Check Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

View File

@@ -0,0 +1,124 @@
name: CI
on:
pull_request:
jobs:
lint:
name: Lint
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Install go dependencies
run: go mod tidy
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Test
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Get fyne command
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Get go dependencies
run: |
go mod tidy
- name: Test
run: go test -race -v -shuffle=on ./...
build:
name: Build
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Get fyne command
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Get go dependencies
run: |
go mod tidy
- name: Build for linux
run: |
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}}
GOOS: linux
GOARCH: amd64
EXE: ""
CGO_ENABLED: 1
CC: gcc
- 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
env:
VERSION: ${{github.ref_name}}
BUILD: ${{github.run_number}}
GOOS: windows
GOARCH: amd64
EXE: ".exe"
CGO_ENABLED: 1
CC: x86_64-w64-mingw32-gcc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
path: bin/

View File

@@ -0,0 +1,125 @@
name: CI
on:
push:
branches: [master, develop]
jobs:
lint:
name: Lint
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Install go dependencies
run: go mod tidy
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Test
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Get fyne command
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Get go dependencies
run: |
go mod tidy
- name: Test
run: go test -race -v -shuffle=on ./...
build:
name: Build
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Get fyne command
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Get go dependencies
run: |
go mod tidy
- name: Build for linux
run: |
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}}
BUILD: ${{github.run_number}}
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 1
CC: gcc
- 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
ls bin
env:
VERSION: ${{github.ref_name}}
BUILD: ${{github.run_number}}
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 1
CC: x86_64-w64-mingw32-gcc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
path: bin/

View File

@@ -1,32 +0,0 @@
name: release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: release-build-linux
run: GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 's1d3sw1ped/vulture/config.BuildVersion=${{github.ref_name}}'" -o bin/vulture-${{github.ref_name}}-linux-amd64
- name: release-build-windows
run: GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 's1d3sw1ped/vulture/config.BuildVersion=${{github.ref_name}}'" -o bin/vulture-${{github.ref_name}}-windows-amd64.exe
- name: release-build-darwin
run: GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 's1d3sw1ped/vulture/config.BuildVersion=${{github.ref_name}}'" -o bin/vulture-${{github.ref_name}}-darwin-amd64
- name: update-release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
bin/**
api_key: '${{secrets.RELEASE_TOKEN}}'

View File

@@ -0,0 +1,128 @@
name: Release versioned tag
on:
push:
tags:
- 'v*'
jobs:
lint:
name: Lint
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Install go dependencies
run: go mod tidy
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Test
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Get fyne command
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Get go dependencies
run: |
go mod tidy
- name: Test
run: go test -race -v -shuffle=on ./...
release:
name: Build versioned release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Setup OS dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Install fyne command
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Install go dependencies
run: go mod tidy
- 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}
env:
VERSION: ${{github.ref_name}}
BUILD: ${{github.run_number}}
GOOS: linux
GOARCH: amd64
EXE: ""
CGO_ENABLED: 1
CC: gcc
- 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
env:
VERSION: ${{github.ref_name}}
BUILD: ${{github.run_number}}
GOOS: windows
GOARCH: amd64
EXE: ".exe"
CGO_ENABLED: 1
CC: x86_64-w64-mingw32-gcc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
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}}'

4
FyneApp.toml Normal file
View File

@@ -0,0 +1,4 @@
[Details]
Icon = "icon.png"
Name = "Swiped Mod Switcher"
ID = "com.s1d3sw1ped.swipedmodswitcher"

View File

@@ -28,5 +28,8 @@ the switch is really just a symbolic link so it happens in milliseconds even on
7. Click Reload Mod Profiles and it should display your profile then simply click it to switch to that profile.
8. Play your game or create more profiles the choice at this point is yours.
## Disclaimer
No testing goes into ensuring the linux builds actually work.
## Virus Warning
There are alot of false positives with golang programs if you got a warning for this app it was 99% a false positive however if you believe that it may not be a false positive then either check with virustotal or delete it. there is basically nothing i can do to make your virus scanner not think its a virus and im not spending the years to call or email your virus scanner company to have them fix it. if it really bothers you then do that yourself.

35
main.go
View File

@@ -4,6 +4,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime/debug"
"s1d3sw1ped/swipedmodswitcher/admin"
"slices"
"strings"
@@ -60,16 +61,42 @@ var cfg *Config
func main() {
if !admin.Admin() {
fmt.Println("not running as administrator relaunching")
if err := admin.RunSelfElevated(); err != nil {
panic(err)
}
os.Exit(0)
return // just incase
}
cfg = loadConfig()
ap := app.New()
wp := ap.NewWindow("Swiped Mod Switcher")
commithash := func() string {
if info, ok := debug.ReadBuildInfo(); ok {
for _, setting := range info.Settings {
if setting.Key == "vcs.revision" {
return setting.Value
}
}
}
return ""
}()
buildversion := ap.Metadata().Custom["BuildVersion"]
if buildversion == "" {
buildversion = ""
}
buildnumber := ap.Metadata().Custom["BuildNumber"]
if buildnumber == "" {
buildnumber = "commit " + commithash
} else {
buildnumber = "build " + buildnumber
}
wp := ap.NewWindow(ap.Metadata().Name + " " + buildversion + " " + buildnumber)
wp.Resize(fyne.NewSize(600, 1))
wp.CenterOnScreen()
@@ -135,10 +162,14 @@ func fillGrid(grid *fyne.Container, parent fyne.Window) {
grid.Hide()
defer grid.Show()
grid.RemoveAll()
if admin.Admin() {
for _, profile := range profiles {
profilename := filepath.Base(profile)
grid.Add(widget.NewButton(profilename, makeIFunc(profile, archive, parent)))
}
} else {
grid.Add(widget.NewLabel("not running as administrator"))
}
}
func scanProfiles(profilesroot string) []string {
@@ -180,6 +211,6 @@ func makeIFunc(profile, archive string, parent fyne.Window) func() {
return
}
dialog.NewInformation("Success", fmt.Sprintf("filinked files from %s to %s", filepath.Base(profile), archive), parent).Show()
dialog.NewInformation("Success", fmt.Sprintf("linked files from %s to %s", filepath.Base(profile), archive), parent).Show()
}
}