Compare commits
7 Commits
80907a89a9
...
v0.0.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| a354004201 | |||
| 942be59715 | |||
| 70e376c939 | |||
| 62a1ad83ab | |||
| 47c5a47ffa | |||
| 9bd6e1fc04 | |||
| 73600055fc |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -188,3 +188,4 @@ backend/go.sum
|
|||||||
BUILD_NUMBER
|
BUILD_NUMBER
|
||||||
scripts/resetDanger.js
|
scripts/resetDanger.js
|
||||||
LstWrapper/Program_vite_as_Static.txt
|
LstWrapper/Program_vite_as_Static.txt
|
||||||
|
scripts/stopPool.go
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.0.1-alpha.2](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.1-alpha.1...v0.0.1-alpha.2) (2025-07-16)
|
||||||
|
|
||||||
## [0.0.3-alpha.22](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.21...v0.0.3-alpha.22) (2025-07-12)
|
## [0.0.3-alpha.22](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.21...v0.0.3-alpha.22) (2025-07-12)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "logistics_support_tool",
|
"name": "logistics_support_tool",
|
||||||
"version": "0.0.1-alpha.1",
|
"version": "0.0.1-alpha.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "logistics_support_tool",
|
"name": "logistics_support_tool",
|
||||||
"version": "0.0.1-alpha.1",
|
"version": "0.0.1-alpha.2",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "logistics_support_tool",
|
"name": "logistics_support_tool",
|
||||||
"version": "0.0.1-alpha.1",
|
"version": "0.0.1-alpha.2",
|
||||||
"description": "This is the new logisitcs support tool",
|
"description": "This is the new logisitcs support tool",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"docker": "powershell -File ./scripts/dockerBuild.ps1",
|
"docker": "powershell -File ./scripts/dockerBuild.ps1",
|
||||||
"release:createZip": "powershell -File ./scripts/release.ps1",
|
"release:createZip": "powershell -File ./scripts/release.ps1",
|
||||||
"release:gitea": "node ./scripts/create-gitea-release.js",
|
"release:gitea": "node ./scripts/create-gitea-release.js",
|
||||||
"release": "release-it --verbose --non-interactive --preRelease=alpha",
|
"release:publish": "release-it --verbose --non-interactive --preRelease=alpha",
|
||||||
"commit": "cz"
|
"commit": "cz"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -110,11 +110,25 @@ function Update-BuildNumber {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Fronend build finished successfully."
|
Write-Host "Fronend build finished successfully."
|
||||||
|
Pop-Location
|
||||||
|
|
||||||
|
Write-Host "Building wrapper"
|
||||||
|
Push-Location $rootDir/LstWrapper
|
||||||
|
dotnet publish -c Release -o ./publish
|
||||||
|
|
||||||
Pop-Location
|
Pop-Location
|
||||||
Update-BuildNumber
|
Update-BuildNumber
|
||||||
|
|
||||||
Write-Host "Zipping up the release"
|
Write-Host "Zipping up the release"
|
||||||
npm run release:createZip
|
npm run release:createZip
|
||||||
|
|
||||||
|
$choice = Read-Host "Are we going to create a release? y/N"
|
||||||
|
|
||||||
|
if ($choice -eq "y" -or $choice -eq "Y") {
|
||||||
|
npm run release:gitea $version
|
||||||
|
npm run release:publish
|
||||||
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
46
scripts/iisControls.ps1
Normal file
46
scripts/iisControls.ps1
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
param (
|
||||||
|
[string]$ServerName,
|
||||||
|
[string]$AppPoolName,
|
||||||
|
[string]$StopOrStart
|
||||||
|
)
|
||||||
|
|
||||||
|
write-host $StopOrStart
|
||||||
|
if ($StopOrStart -eq "stop") {
|
||||||
|
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||||
|
param($AppPoolName)
|
||||||
|
|
||||||
|
Import-Module WebAdministration
|
||||||
|
Write-Host "Stopping AppPool '$AppPoolName' on $($env:COMPUTERNAME)"
|
||||||
|
|
||||||
|
try {
|
||||||
|
Stop-WebAppPool -Name $AppPoolName -ErrorAction Stop
|
||||||
|
|
||||||
|
Start-Sleep -Seconds 2
|
||||||
|
$state = (Get-WebAppPoolState -Name $AppPoolName).Value
|
||||||
|
Write-Host "Result: $state"
|
||||||
|
} catch {
|
||||||
|
Write-Error $_.Exception.Message
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
} -ArgumentList $AppPoolName
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($StopOrStart -eq "start"){
|
||||||
|
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||||
|
param($AppPoolName)
|
||||||
|
|
||||||
|
Import-Module WebAdministration
|
||||||
|
Write-Host "Starting AppPool '$AppPoolName' on $($env:COMPUTERNAME)"
|
||||||
|
|
||||||
|
try {
|
||||||
|
Start-WebAppPool -Name $AppPoolName
|
||||||
|
Start-Sleep -Seconds 2
|
||||||
|
$state = (Get-WebAppPoolState -Name $AppPoolName).Value
|
||||||
|
Write-Host "Result: $state"
|
||||||
|
} catch {
|
||||||
|
Write-Error $_.Exception.Message
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
} -ArgumentList $AppPoolName
|
||||||
|
}
|
||||||
|
|
||||||
@@ -72,12 +72,12 @@ $tempStageDir = New-Item -ItemType Directory -Path (Join-Path $env:TEMP "lst_sta
|
|||||||
# Copy files to organized structure
|
# Copy files to organized structure
|
||||||
$filesToCopy = @(
|
$filesToCopy = @(
|
||||||
@{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" },
|
@{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" },
|
||||||
@{ Source = "LstWrapper\publish\*"; Destination = "lstwrapper\" },
|
@{ Source = "LstWrapper\publish"; Destination = "lstwrapper\" },
|
||||||
@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
||||||
@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
||||||
@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
||||||
@{ Source = "frontend\public"; Destination = "frontend\public" },
|
@{ Source = "frontend\public"; Destination = "frontend\public" },
|
||||||
@{ Source = "package.json"; Destination = "frontend\package.json" },
|
@{ Source = "package.json"; Destination = "package.json" },
|
||||||
@{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" },
|
@{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" },
|
||||||
@{ Source = "README.md"; Destination = "README.md" }
|
@{ Source = "README.md"; Destination = "README.md" }
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user