diff --git a/.release-it.json b/.release-it.json
index 19da8af..8c055bc 100644
--- a/.release-it.json
+++ b/.release-it.json
@@ -1,31 +1,29 @@
{
- "git": {
- "commitMessage": "chore(release): v${version}",
- "tagName": "v${version}",
- "requireCleanWorkingDir": true
- },
- "npm": {
- "publish": false
- },
- "hooks": {
- "after:bump": "echo Version bumped to ${version}",
- "after:release": "node ./scripts/create-gitea-release.js ${version}"
+ "git": {
+ "commitMessage": "chore(release): v${version}",
+ "tagName": "v${version}",
+ "requireCleanWorkingDir": true
+ },
+ "npm": {
+ "publish": false
+ },
+ "hooks": {
+ "before:bump": "node ./scripts/build-zip.js ${version}",
+ "after:release": "node ./scripts/create-gitea-release.js ${version}"
+ },
+ "github": false,
+ "plugins": {
+ "@release-it/conventional-changelog": {
+ "preset": "conventionalcommits",
+ "infile": "CHANGELOG.md",
+ "config": ".versionrc.json",
+ "changelogCommand": "conventional-changelog -p conventionalcommits -r 1"
+ }
+ },
+ "gitea": {
+ "host": "https://${GITEA_URL}",
+ "tokenRef": "GITEA_TOKEN"
+ },
- },
- "github": false,
- "plugins": {
- "@release-it/conventional-changelog": {
- "preset": "conventionalcommits",
- "infile": "CHANGELOG.md",
- "config": ".versionrc.json"
- }
- },
- "gitea": {
- "host": "https://${GITEA_URL}",
- "tokenRef": "GITEA_TOKEN"
-},
-
- "files": [
- "package.json"
- ]
+ "files": ["package.json"]
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eaa1a68..0d71099 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,9 @@
-# Changelog
+## 0.0.2-alpha.10 (2025-07-12)
-## [0.0.2-alpha.11](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.10...v0.0.2-alpha.11) (2025-07-12)
+* chore(release): v0.0.2-alpha.10 ([36b1df7](https://git.tuffraid.net/cowch/logistics_support_tool/commits/36b1df7))
+* fix(release): error in function ([dc4beb2](https://git.tuffraid.net/cowch/logistics_support_tool/commits/dc4beb2))
-### Bug Fixes
-* **release:** var not defined ([a282940](https://git.tuffraid.net/cowch/logistics_support_tool/commit/a282940d9b1334743af31b96fbb3fd8228ee290a))
## 0.0.2-alpha.9 (2025-07-12)
@@ -117,3 +116,6 @@
* feat(starter): intial starter release ([b370cb1](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b370cb1))
* Initial commit ([e4d3fc9](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e4d3fc9))
* Update README.md ([e081c8f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081c8f))
+
+
+
diff --git a/scripts/build.ps1 b/scripts/build.ps1
index ae9e09e..fded424 100644
--- a/scripts/build.ps1
+++ b/scripts/build.ps1
@@ -85,92 +85,39 @@ function Update-BuildNumber {
}
}
-while ($true) {
- Write-Host "Select build option:"
- Write-Host "1) Backend"
- Write-Host "2) Frontend"
- Write-Host "3) All"
- Write-Host "4) Exit"
- $choice = Read-Host "Enter your choice (1-4)"
-
- switch ($choice) {
- '1' {
- Push-Location $rootDir/backend
- Write-Host "Building the app"
- go build -ldflags "-X main.version=$($version)-$($initialBuildValue)" -o lst_backend.exe ./main.go
- if ($LASTEXITCODE -ne 0) {
- Write-Warning "Backend build failed!"
- Pop-Location
- break
- }
-
- Write-Host "Backend build finished successfully."
-
- Pop-Location
- npm run release:createZip
- npm run release
- Update-BuildNumber
- break
- }
- '2' {
- Push-Location $rootDir/frontend
- Write-Host "Building the frontend"
- npm run build
- if ($LASTEXITCODE -ne 0) {
- Write-Warning "Fronend build failed!"
- Pop-Location
- break
- }
-
- Write-Host "Fronend build finished successfully."
- Pop-Location
- npm run release:createZip
- npm run release
- Update-BuildNumber
- break
- }
- '3' {
- Push-Location $rootDir/backend
- Write-Host "Building the app"
- go build -ldflags "-X main.version=$($version)-$($initialBuildValue)" -o lst_backend.exe ./main.go
- if ($LASTEXITCODE -ne 0) {
- Write-Warning "Backend build failed!"
- Pop-Location
- break
- }
-
- Write-Host "Backend build finished successfully."
-
- Pop-Location
-
- Push-Location $rootDir/frontend
- Write-Host "Building the frontend"
- npm run build
-
- if ($LASTEXITCODE -ne 0) {
- Write-Warning "Fronend build failed!"
- Pop-Location
- break
- }
-
- Write-Host "Fronend build finished successfully."
- Pop-Location
- npm run release:createZip
- npm run release
- Update-BuildNumber
-
- break
- }
- '4' {
- Write-Host "Exiting script."
- exit 0
- }
- default {
- Write-Warning "Invalid choice, please enter 1, 2, 3, or 4."
- }
+ Push-Location $rootDir/backend
+ Write-Host "Building the app"
+ go build -ldflags "-X main.version=$($version)-$($initialBuildValue)" -o lst_backend.exe ./main.go
+ if ($LASTEXITCODE -ne 0) {
+ Write-Warning "Backend build failed!"
+ Pop-Location
+ break
}
-}
+
+ Write-Host "Backend build finished successfully."
+
+ Pop-Location
+
+ Push-Location $rootDir/frontend
+ Write-Host "Building the frontend"
+ npm run build
+
+ if ($LASTEXITCODE -ne 0) {
+ Write-Warning "Fronend build failed!"
+ Pop-Location
+ break
+ }
+
+ Write-Host "Fronend build finished successfully."
+ Pop-Location
+ Update-BuildNumber
+
+ Write-Host "Zipping up the release"
+ npm run release:createZip
+ break
+
+