Skip to content

Commit 2103f4c

Browse files
authored
Merge pull request #30 from micREsoft/v1.3.2
Merge v1.3.2 development changes into master branch
2 parents 424d00b + 78396a0 commit 2103f4c

File tree

197 files changed

+10590
-8620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+10590
-8620
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,17 @@ jobs:
205205
# Generate RCC file manually
206206
if (Test-Path $rccPath) {
207207
Write-Host "Generating RCC file..."
208+
$rccInput = "src/Res/resources.qrc"
208209
$rccOutput = "GeneratedFiles/qrc_resources.cpp"
209-
& $rccPath -name resources "resources.qrc" -o $rccOutput
210-
if ($LASTEXITCODE -eq 0) {
211-
Write-Host "Successfully generated RCC file: $rccOutput"
210+
if (Test-Path $rccInput) {
211+
& $rccPath -name resources $rccInput -o $rccOutput
212+
if ($LASTEXITCODE -eq 0) {
213+
Write-Host "Successfully generated RCC file: $rccOutput"
214+
} else {
215+
Write-Host "RCC generation failed with exit code: $LASTEXITCODE"
216+
}
212217
} else {
213-
Write-Host "RCC generation failed with exit code: $LASTEXITCODE"
218+
Write-Host "RCC input file not found: $rccInput"
214219
}
215220
} else {
216221
Write-Host "RCC tool not found, skipping resource compilation"
@@ -265,12 +270,12 @@ jobs:
265270
Write-Host "VcpkgRoot: $env:VcpkgRoot"
266271
Write-Host "VCPKG_ROOT: $env:VCPKG_ROOT"
267272
268-
msbuild "Bind.sln" /p:Configuration=Debug /p:Platform=x64 /p:VcpkgEnabled=true /p:VcpkgEnableManifest=true /p:VcpkgUseStatic=false /p:VcpkgTriplet=x64-windows /p:QTDIR="$env:QTDIR" /p:VcpkgRoot="$env:VcpkgRoot"
273+
msbuild "../SysCaller.sln" /p:Configuration=Debug /p:Platform=x64 /p:VcpkgEnabled=true /p:VcpkgEnableManifest=true /p:VcpkgUseStatic=false /p:VcpkgTriplet=x64-windows /p:QTDIR="$env:QTDIR" /p:VcpkgRoot="$env:VcpkgRoot" /t:Bind
269274
270275
- name: Copy Vcpkg Dependencies (Debug)
271276
run: |
272277
Write-Host "Copying Vcpkg Dependencies for Debug Build..."
273-
$outputDir = "x64/Debug"
278+
$outputDir = "../Build/Bind/Debug"
274279
$vcpkgBin = "${{ github.workspace }}/vcpkg/installed/x64-windows/bin"
275280
276281
# Copy Vcpkg Dependencies (Qt dependencies will be handled by windeployqt)
@@ -298,10 +303,10 @@ jobs:
298303
Get-ChildItem "GeneratedFiles" -Name | Where-Object { $_ -like "*qrc*" } | ForEach-Object { Write-Host "Found RCC file: $_" }
299304
}
300305
301-
& $windeployqt "x64/Debug/Bind.exe" --debug --no-compiler-runtime --no-opengl-sw --force
306+
& $windeployqt "../Build/Bind/Debug/Bind.exe" --debug --no-compiler-runtime --no-opengl-sw --force
302307
if ($LASTEXITCODE -eq 0) {
303308
Write-Host "Qt deployment completed successfully for Debug build"
304-
Get-ChildItem "x64/Debug" -Name | Sort-Object
309+
Get-ChildItem "../Build/Bind/Debug" -Name | Sort-Object
305310
} else {
306311
Write-Host "windeployqt failed with exit code: $LASTEXITCODE"
307312
}
@@ -317,12 +322,12 @@ jobs:
317322
Write-Host "VcpkgRoot: $env:VcpkgRoot"
318323
Write-Host "VCPKG_ROOT: $env:VCPKG_ROOT"
319324
320-
msbuild "Bind.sln" /p:Configuration=Release /p:Platform=x64 /p:VcpkgEnabled=true /p:VcpkgEnableManifest=true /p:VcpkgUseStatic=false /p:VcpkgTriplet=x64-windows /p:QTDIR="$env:QTDIR" /p:VcpkgRoot="$env:VcpkgRoot"
325+
msbuild "../SysCaller.sln" /p:Configuration=Release /p:Platform=x64 /p:VcpkgEnabled=true /p:VcpkgEnableManifest=true /p:VcpkgUseStatic=false /p:VcpkgTriplet=x64-windows /p:QTDIR="$env:QTDIR" /p:VcpkgRoot="$env:VcpkgRoot" /t:Bind
321326
322327
- name: Copy Vcpkg Dependencies (Release)
323328
run: |
324329
Write-Host "Copying Vcpkg Dependencies for Release Build..."
325-
$outputDir = "x64/Release"
330+
$outputDir = "../Build/Bind/Release"
326331
$vcpkgBin = "${{ github.workspace }}/vcpkg/installed/x64-windows/bin"
327332
328333
# Copy Vcpkg Dependencies (Qt dependencies will be handled by windeployqt)
@@ -345,10 +350,10 @@ jobs:
345350
346351
if (Test-Path $windeployqt) {
347352
Write-Host "Running windeployqt on Release executable..."
348-
& $windeployqt "x64/Release/Bind.exe" --release --no-compiler-runtime --no-opengl-sw --force
353+
& $windeployqt "../Build/Bind/Release/Bind.exe" --release --no-compiler-runtime --no-opengl-sw --force
349354
if ($LASTEXITCODE -eq 0) {
350355
Write-Host "Qt deployment completed successfully for Release build"
351-
Get-ChildItem "x64/Release" -Name | Sort-Object
356+
Get-ChildItem "../Build/Bind/Release" -Name | Sort-Object
352357
} else {
353358
Write-Host "windeployqt failed with exit code: $LASTEXITCODE"
354359
}
@@ -358,18 +363,18 @@ jobs:
358363
359364
- name: Verify Executables Exist
360365
run: |
361-
if (Test-Path "x64/Release/Bind.exe") {
366+
if (Test-Path "../Build/Bind/Release/Bind.exe") {
362367
Write-Host "Bind.exe (Release) Built Successfully!"
363-
Get-Item "x64/Release/Bind.exe" | Select-Object Name, Length, LastWriteTime
368+
Get-Item "../Build/Bind/Release/Bind.exe" | Select-Object Name, Length, LastWriteTime
364369
} else {
365370
Write-Host "Bind.exe (Release) not found!"
366371
Get-ChildItem -Recurse -Name "*.exe" | ForEach-Object { Write-Host "Found: $_" }
367372
exit 1
368373
}
369374
370-
if (Test-Path "x64/Debug/Bind.exe") {
375+
if (Test-Path "../Build/Bind/Debug/Bind.exe") {
371376
Write-Host "Bind.exe (Debug) Built Successfully!"
372-
Get-Item "x64/Debug/Bind.exe" | Select-Object Name, Length, LastWriteTime
377+
Get-Item "../Build/Bind/Debug/Bind.exe" | Select-Object Name, Length, LastWriteTime
373378
} else {
374379
Write-Host "Bind.exe (Debug) not found!"
375380
}
@@ -383,29 +388,29 @@ jobs:
383388
uses: actions/upload-artifact@v4
384389
with:
385390
name: Bind-Release
386-
path: Bind/x64/Release/
391+
path: Build/Bind/Release/
387392
retention-days: 30
388393

389394
- name: Upload Build Artifacts (Debug)
390395
uses: actions/upload-artifact@v4
391396
with:
392397
name: Bind-Debug
393-
path: Bind/x64/Debug/
398+
path: Build/Bind/Debug/
394399
retention-days: 30
395400

396401
- name: Create Release Package
397402
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
398403
run: |
399-
$version = "v1.3.1-${{ github.run_number }}"
404+
$version = "v1.3.2"
400405
$zipName = "Bind-$version.zip"
401406
402407
New-Item -ItemType Directory -Path "release-package" -Force
403408
404-
Copy-Item "x64/Release/*" "release-package\" -Recurse
409+
Copy-Item "../Build/Bind/Release/*" "release-package\" -Recurse
405410
406411
# Create README
407-
$version = "v1.3.1-${{ github.run_number }}"
408-
$readmeText = "# SysCaller: Bind - v1.3.1`n`n"
412+
$version = "v1.3.2"
413+
$readmeText = "# SysCaller: Bind - v1.3.2`n`n"
409414
$readmeText += "Build Date: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss UTC')`n"
410415
$readmeText += "Commit: ${{ github.sha }}`n"
411416
$readmeText += "Platform: Windows x64 (64-bit)`n"
@@ -430,7 +435,7 @@ jobs:
430435
uses: actions/upload-artifact@v4
431436
with:
432437
name: Release-Package
433-
path: Bind/Bind-v1.3.1-*.zip
438+
path: Bind/Bind-v1.3.2.zip
434439
retention-days: 90
435440

436441
- name: Create GitHub Release
@@ -440,10 +445,10 @@ jobs:
440445
env:
441446
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
442447
with:
443-
tag_name: v1.3.1-${{ github.run_number }}
444-
release_name: "SysCaller: Bind - v1.3.1-${{ github.run_number }}"
448+
tag_name: v1.3.2
449+
release_name: "SysCaller: Bind - v1.3.2"
445450
body: |
446-
## SysCaller: Bind - v1.3.1-${{ github.run_number }}
451+
## SysCaller: Bind - v1.3.2
447452
448453
**Build Date:** ${{ github.event.head_commit.timestamp }}
449454
**Commit:** ${{ github.sha }}
@@ -466,6 +471,6 @@ jobs:
466471
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
467472
with:
468473
upload_url: ${{ steps.create_release.outputs.upload_url }}
469-
asset_path: Bind/Bind-v1.3.1-${{ github.run_number }}.zip
470-
asset_name: Bind-v1.3.1-${{ github.run_number }}.zip
474+
asset_path: Bind/Bind-v1.3.2.zip
475+
asset_name: Bind-v1.3.2.zip
471476
asset_content_type: application/zip

Bind/Bind.sln

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)