46 Commits

Author SHA1 Message Date
s1d3sw1ped_bot d252e8e8d9 docs: Add CONTRIBUTING.md
CI / Build (push) Successful in 42s
CI / Lint (push) Successful in 48s
CI / Test (push) Successful in 1m1s
Release versioned tag / Lint (push) Failing after 41s
Release versioned tag / Test (push) Successful in 1m11s
Release versioned tag / Build versioned release (push) Successful in 2m7s
Add short contribution guide on the default branch from develop tip content.
2026-09-01 14:09:30 -05:00
s1d3sw1ped_bot 9e493e68d8 docs: Add CONTRIBUTING.md
CI / Lint (pull_request) Successful in 34s
CI / Build (pull_request) Successful in 50s
CI / Test (pull_request) Successful in 1m2s
Copy the develop tip contribution guide onto the default branch
so defaults and develop share one short CONTRIBUTING.md.
2026-09-01 19:08:20 +00:00
s1d3sw1ped_bot b898338b2d Bump push-ci golangci-lint to v8 / v2.13.2 (#31)
CI / Lint (push) Successful in 33s
CI / Build (push) Successful in 38s
CI / Test (push) Successful in 58s
2026-08-31 22:14:59 -05:00
s1d3sw1ped_bot ba986af8a8 Bump Go to 1.27.0 (#30)
CI / Build (push) Successful in 50s
CI / Test (push) Successful in 1m1s
CI / Lint (push) Failing after 1m1s
2026-08-31 21:00:11 -05:00
s1d3sw1ped c1885f174a Update README.md
CI / Lint (push) Successful in 3m49s
CI / Test (push) Successful in 3m57s
CI / Build (push) Successful in 1m56s
2024-08-11 04:19:25 +00:00
s1d3sw1ped 0650dabb15 Update .gitea/workflows/tag-release.yaml
CI / Lint (push) Successful in 2m34s
CI / Test (push) Successful in 2m48s
CI / Build (push) Successful in 3m29s
Release versioned tag / Lint (push) Successful in 2m9s
Release versioned tag / Test (push) Successful in 2m36s
Release versioned tag / Build versioned release (push) Successful in 3m35s
re-enable release binaries
2024-07-26 15:10:47 +00:00
s1d3sw1ped 42af2d6d25 remove toolcache env its hardcoded in the runners config now
CI / Test (push) Successful in 1m12s
CI / Lint (push) Successful in 1m17s
CI / Build (push) Successful in 1m17s
2024-07-17 23:27:22 -05:00
s1d3sw1ped 2dbc72bd39 minor cleanup of artifact names
CI / Test (push) Successful in 1m2s
CI / Build (push) Successful in 1m22s
CI / Lint (push) Successful in 51s
2024-07-17 22:37:21 -05:00
s1d3sw1ped d46a142312 test
CI / Lint (push) Successful in 38s
CI / Test (push) Successful in 1m13s
CI / Build (push) Successful in 1m37s
2024-07-17 22:23:27 -05:00
s1d3sw1ped caa699c651 fix ci
CI / Test (push) Failing after 13s
CI / Build (push) Failing after 12s
CI / Lint (push) Failing after 16s
2024-07-17 21:35:05 -05:00
s1d3sw1ped c5f77582c0 Merge pull request 'fix typo in tag-release' (#29) from develop into master
CI / Build (push) Failing after 23s
CI / Test (push) Has been cancelled
CI / Lint (push) Failing after 13s
Reviewed-on: #29
2024-05-20 09:50:42 +00:00
s1d3sw1ped 06503ce518 fix typo in tag-release
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
s1d3sw1ped f1603dc6fa Merge pull request 'small temporary fix for release updating not working' (#28) from develop into master
CI / Test (push) Successful in 2m13s
CI / Lint (push) Successful in 2m16s
CI / Build (push) Successful in 2m51s
Reviewed-on: #28
2024-05-20 09:46:30 +00:00
s1d3sw1ped f8932166bb disable release update until fixed
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
s1d3sw1ped ffd41348a0 small temporary fix for release updating not working
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 12a9c101f2 Merge pull request 'Merge pull request 'update-develop' (#26) from update-develop into develop' (#27) from develop into master
CI / Test (push) Successful in 1m21s
CI / Lint (push) Successful in 1m55s
CI / Build (push) Successful in 2m33s
Release versioned tag / Test (push) Successful in 1m35s
Release versioned tag / Lint (push) Successful in 2m5s
Release versioned tag / Build versioned release (push) Failing after 2m11s
Reviewed-on: #27
2024-05-20 07:22:04 +00:00
s1d3sw1ped ff6381575e Merge pull request 'update-develop' (#26) from update-develop into develop
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
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
s1d3sw1ped 76d8c1744a fix ci stuff for other things
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
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
s1d3sw1ped 4cbb0666cb add run number to artifacts
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
s1d3sw1ped 83cb34001f fyne metadata sucks so jst custom stuff
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
s1d3sw1ped 1f09482950 remove version and build from fyneapp.toml
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
s1d3sw1ped 1af4d225b5 add os dependencies to lint
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
s1d3sw1ped 7863c53280 test
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
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
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
s1d3sw1ped 07f11c7d22 fix
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
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
s1d3sw1ped d9a75a5e21 fix
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
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
s1d3sw1ped b04e653350 blah
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
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
s1d3sw1ped 9703682b4a try fixing ci again
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
s1d3sw1ped e281fbafdb ci and general changes
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
s1d3sw1ped be35430727 please
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
s1d3sw1ped 3667bfae52 please
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
s1d3sw1ped 8ec9119bc1 please
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
s1d3sw1ped 4924466a93 please
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
s1d3sw1ped e37e629630 please
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
s1d3sw1ped e1db654a48 please
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
s1d3sw1ped ee19aadac9 please
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
s1d3sw1ped 17b0d9f72e please
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
s1d3sw1ped 99a59b47c2 please
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
s1d3sw1ped 77f83b89f6 Merge branch 'master' of ssh://git.s1d3sw1ped.com:2222/s1d3sw1ped/SwipedModSwitcher
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 58bb19b43f add actions 2024-03-10 00:41:03 -06:00
8 changed files with 125 additions and 45 deletions
+13 -12
View File
@@ -5,8 +5,6 @@ on:
jobs:
lint:
name: Lint
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -19,18 +17,21 @@ jobs:
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
uses: golangci/golangci-lint-action@v8
with:
version: latest
version: v2.13.2
test:
name: Test
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -61,8 +62,6 @@ jobs:
build:
name: Build
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -90,8 +89,9 @@ jobs:
- name: Build for linux
run: |
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}${EXE} main.go
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
@@ -101,17 +101,18 @@ jobs:
- name: Build for windows
run: |
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}${EXE} main.go
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
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}}
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
path: bin/
+15 -13
View File
@@ -6,13 +6,14 @@ on:
jobs:
lint:
name: Lint
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: test log
run: env | sort
- name: Setup go
uses: actions/setup-go@v5
with:
@@ -20,18 +21,21 @@ jobs:
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
uses: golangci/golangci-lint-action@v8
with:
version: latest
version: v2.13.2
test:
name: Test
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -62,8 +66,6 @@ jobs:
build:
name: Build
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -91,30 +93,30 @@ jobs:
- name: Build for linux
run: |
fyne package --os ${{GOOS}} --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-linux-amd64 main.go
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
EXE: ""
CGO_ENABLED: 1
CC: gcc
- name: Build for windows
run: |
fyne package --os ${{GOOS}} --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-windows-amd64.exe main.go
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
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}}
name: swiped-mod-switcher-${{github.ref_name}}-${{github.run_number}}
path: bin/
+12 -7
View File
@@ -7,8 +7,6 @@ on:
jobs:
lint:
name: Lint
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -21,6 +19,11 @@ jobs:
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
@@ -31,8 +34,6 @@ jobs:
test:
name: Test
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -87,7 +88,7 @@ jobs:
- name: Build for linux
run: |
fyne package --os ${{GOOS}} --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-linux-amd64 main.go
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}}
@@ -97,10 +98,9 @@ jobs:
CGO_ENABLED: 1
CC: gcc
- name: Build for windows
run: |
fyne package --os ${{GOOS}} --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-windows-amd64.exe main.go
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}}
@@ -110,6 +110,11 @@ jobs:
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
+44
View File
@@ -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 ≤ ~7075 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
View File
@@ -2,5 +2,3 @@
Icon = "icon.png"
Name = "Swiped Mod Switcher"
ID = "com.s1d3sw1ped.swipedmodswitcher"
Version = "0.0.0"
Build = 1
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -1,6 +1,6 @@
module s1d3sw1ped/swipedmodswitcher
go 1.22
go 1.27.0
require (
fyne.io/fyne/v2 v2.3.5
+33 -3
View File
@@ -4,9 +4,9 @@ import (
"fmt"
"os"
"path/filepath"
"runtime/debug"
"s1d3sw1ped/swipedmodswitcher/admin"
"slices"
"strconv"
"strings"
"fyne.io/fyne/v2"
@@ -61,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(ap.Metadata().Name + " v" + ap.Metadata().Version + "." + strconv.Itoa(ap.Metadata().Build))
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()
@@ -136,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 {
@@ -181,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()
}
}