diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 6973b73..f0be6d0 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -29,7 +29,7 @@ jobs: GITEA_TOKEN: ${{ secrets.TOKEN }} GORELEASER_FORCE_TOKEN: "gitea" - name: Copy deb to publish folder - run: mkdir publish; cp dist/softwatch_linux_amd64_v1/softwatch publish/softwatch_linux_amd64; cp dist/softwatch_linux_arm_7/softwatch publish/softwatch_linux_arm_7 + run: mkdir publish; cp dist/softwatch_linux_amd64_v1/softwatch publish/softwatch-stable_linux_amd64; cp dist/softwatch_linux_arm_7/softwatch publish/softwatch-stable_linux_arm_7 - name: Upload to s3 uses: https://github.com/shallwefootball/s3-upload-action@master with: diff --git a/Readme.md b/Readme.md index 80511fb..b381895 100644 --- a/Readme.md +++ b/Readme.md @@ -3,7 +3,7 @@ Get an E-Mail notification if a new Release of an Software is available for you # Setup -Download the Version you want to use: +Download the Version you want to use, make the file executable, create a config.yml run `./softwatch config.yml` ## Linux ARM7 (Raspberry PI) diff --git a/main.go b/main.go index 9e3d7d3..770bda6 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ type software struct { } func getConfig() config { - data, err := os.ReadFile("config.yml") + data, err := os.ReadFile(os.Args[1]) if err != nil { log.Fatal().Err(err).Msg("cant read config") }