Skip to content

Commit

Permalink
Remove version script.
Browse files Browse the repository at this point in the history
Include proper version info in `FyneApp.toml`
  • Loading branch information
ubavic committed Oct 5, 2024
1 parent b5e3039 commit fe5d49a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 25 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
- name: Install Fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Generate version file
run: go run script/generateVersion.go
run: |
VERSION=$(git describe --tags --abbrev=0 | tail -c +2)
echo "$VERSION" >> assets/version
echo " Version = \"$VERSION\"" >> FyneApp.toml
- name: Build GUI version
run: |
fyne package -os linux
Expand Down Expand Up @@ -75,7 +78,10 @@ jobs:
- name: Install Fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Generate version file
run: go run script\generateVersion.go
run: |
$version = (git describe --tags --abbrev=0).Substring(1)
$version | Out-File -FilePath "assets/version" -Append
" Version = `"$version`"" | Out-File -FilePath "FyneApp.toml" -Append
- name: Build
run: |
fyne package -os windows
Expand Down
1 change: 0 additions & 1 deletion FyneApp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ Website = "https://github.com/ubavic/bas-celik"
Icon = "assets/logo.png"
Name = "Bas Celik"
ID = "com.github.ubavic.bas-celik"
Version = "1.0.0"
Build = 1
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ Aplikacija je podeljena na sledeće pakete:

Ostali direktorijumi u okviru projekta:
+ `embed` i `assets` - dodatne datoteke. Neke se linkuju u izvršnu verziju prilikom kompilacije.
+ `script` - dodatne skripte.
+ `docs` - eksterna dokumentacija

## Doprinos
Expand Down
21 changes: 0 additions & 21 deletions script/generateVersion.go

This file was deleted.

0 comments on commit fe5d49a

Please sign in to comment.