Skip to content

Commit

Permalink
Add initial pause for auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrho committed Oct 24, 2024
1 parent 94f4228 commit 7bec178
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,38 +221,39 @@ jobs:
run: npm install
working-directory: ./jccm

- name: Get version and filenames from package.json and directory
- name: Build and package (x64)
run: |
npm run make -- --platform=win32 --arch=x64
dir out\make\squirrel.windows\x64\
working-directory: ./jccm

- name: Get version and filenames from package.json and .exe and .nupkg files
shell: pwsh
run: |
# Get version from package.json
$version = (Get-Content jccm/package.json | ConvertFrom-Json).version
echo "version=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
# Define the directory path
$basePath = "jccm/out/make/squirrel.windows/x64"
# Get the first .exe file
$exeFile = Get-ChildItem $basePath -Filter *.exe | Select-Object -First 1
if ($exeFile) {
echo "exe_file=$($exeFile.Name)" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
if (Test-Path $basePath) {
$exeFile = Get-ChildItem $basePath -Filter *.exe | Select-Object -First 1
if ($exeFile) {
echo "exe_file=$($exeFile.Name)" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
} else {
Write-Error "No .exe file found."
}
$nupkgFile = Get-ChildItem $basePath -Filter *.nupkg | Select-Object -First 1
if ($nupkgFile) {
echo "nupkg_file=$($nupkgFile.Name)" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
} else {
Write-Error "No .nupkg file found."
}
} else {
Write-Error "No .exe file found in $basePath"
Write-Error "Directory not found: $basePath"
exit 1
}
# Get the first .nupkg file
$nupkgFile = Get-ChildItem $basePath -Filter *.nupkg | Select-Object -First 1
if ($nupkgFile) {
echo "nupkg_file=$($nupkgFile.Name)" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
} else {
Write-Error "No .nupkg file found in $basePath"
}
- name: Build and package (x64)
run: |
npm run make -- --platform=win32 --arch=x64
dir out\make\squirrel.windows\x64\
working-directory: ./jccm

- name: Sign setup.exe with CodeSignTool
uses: sslcom/esigner-codesign@develop
with:
Expand Down

0 comments on commit 7bec178

Please sign in to comment.