Compare commits
3 Commits
08044c7d46
...
39d120b6b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39d120b6b4 | ||
|
|
66772ad2b5 | ||
| cad13efe95 |
@@ -32,25 +32,23 @@ jobs:
|
|||||||
|
|
||||||
- name: build linux
|
- name: build linux
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
|
||||||
BUILD=${{github.run_number}}
|
BUILD=${{github.run_number}}
|
||||||
GOOS=windows
|
GOOS=windows
|
||||||
GOARCH=amd64
|
GOARCH=amd64
|
||||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=gcc
|
CC=gcc
|
||||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-linux-amd64 main.go
|
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-linux-amd64 main.go
|
||||||
|
|
||||||
- name: build windows
|
- name: build windows
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
|
||||||
BUILD=${{github.run_number}}
|
BUILD=${{github.run_number}}
|
||||||
GOOS=windows
|
GOOS=windows
|
||||||
GOARCH=amd64
|
GOARCH=amd64
|
||||||
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=x86_64-w64-mingw32-gcc
|
CC=x86_64-w64-mingw32-gcc
|
||||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-windows-amd64.exe main.go
|
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-windows-amd64.exe main.go
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -32,14 +32,12 @@ jobs:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
|
||||||
BUILD=${{github.run_number}}
|
|
||||||
GOOS=linux
|
GOOS=linux
|
||||||
GOARCH=amd64
|
GOARCH=amd64
|
||||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=gcc
|
CC=gcc
|
||||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
fyne package --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
||||||
- name: run tests
|
- name: run tests
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
- name: Check Vet
|
- name: Check Vet
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
Icon = "icon.png"
|
Icon = "icon.png"
|
||||||
Name = "Swiped Mod Switcher"
|
Name = "Swiped Mod Switcher"
|
||||||
ID = "com.s1d3sw1ped.swipedmodswitcher"
|
ID = "com.s1d3sw1ped.swipedmodswitcher"
|
||||||
Version = "untracked"
|
Version = "0.0.0"
|
||||||
Build = 1
|
Build = 1
|
||||||
Reference in New Issue
Block a user