Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/uno-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build and Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
cd ./src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio
dotnet publish -f net10.0-windows10.0.26100 -r win-x64 -p:SelfContained=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:Version=2.0.${{ github.run_number }} -c Release -p:WindowsPackageType=None ./AzureKeyVaultStudio.csproj
New-Item -ItemType Directory -Path "win-x64" -Force
New-Item -ItemType Directory -Path "$env:GITHUB_WORKSPACE/win-x64" -Force
Move-Item -Path ".\bin\Release\net10.0-windows10.0.26100\win-x64\publish\*.exe" -Destination "$env:GITHUB_WORKSPACE\win-x64\" -Force
- name: Create Package
shell: pwsh
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
run: |
cd ./src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio
dotnet publish -f net10.0-windows10.0.26100 -r win-arm64 -p:Platform=arm64 -p:SelfContained=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=false -p:Version=2.0.${{ github.run_number }} -c Release -p:WindowsPackageType=None ./AzureKeyVaultStudio.csproj
New-Item -ItemType Directory -Path "win-arm64" -Force
New-Item -ItemType Directory -Path "$env:GITHUB_WORKSPACE/win-arm64" -Force
Move-Item -Path ".\bin\Release\net10.0-windows10.0.26100\win-arm64\publish\*.exe" -Destination "$env:GITHUB_WORKSPACE\win-arm64\" -Force
- name: Create Package
shell: pwsh
Expand Down Expand Up @@ -121,8 +121,8 @@ jobs:
dotnet workload restore
cd ./src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio
dotnet publish -f net10.0-desktop -p:UnoMacOSCustomInfoPlist=Info.plist -p:PackageFormat=app -p:SelfContained=true -p:PublishReadyToRun=true -r osx-x64 -p:Version=2.0.${{ github.run_number }} -c Release ./AzureKeyVaultStudio.csproj
New-Item -ItemType Directory -Path "osx-x64" -Force
Move-Item -Path ".\bin\Release\net10.0-desktop\osx-x64\publish\*.app" -Destination "$env:GITHUB_WORKSPACE\osx-x64\" -Force
New-Item -ItemType Directory -Path "$env:GITHUB_WORKSPACE/osx-x64" -Force
Move-Item -Path "./bin/Release/net10.0-desktop/osx-x64/publish/*.app" -Destination "$env:GITHUB_WORKSPACE/osx-x64/" -Force
- name: Create Package
shell: pwsh
run: tar -cvf azurekeyvaultstudio.macos-x64.tar osx-x64
Expand Down Expand Up @@ -153,8 +153,8 @@ jobs:
cd ./src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio
dotnet workload restore
dotnet publish -f net10.0-desktop -p:UnoMacOSCustomInfoPlist=Info.plist -p:PackageFormat=app -p:PublishReadyToRun=true -r osx-arm64 -p:Version=2.0.${{ github.run_number }} -c Release ./AzureKeyVaultStudio.csproj
New-Item -ItemType Directory -Path "osx-arm64" -Force
Move-Item -Path ".\bin\Release\net10.0-desktop\osx-arm64\publish\*.app" -Destination "$env:GITHUB_WORKSPACE\osx-arm64\" -Force
New-Item -ItemType Directory -Path "$env:GITHUB_WORKSPACE/osx-arm64" -Force
Move-Item -Path "./bin/Release/net10.0-desktop/osx-arm64/publish/*.app" -Destination "$env:GITHUB_WORKSPACE/osx-arm64/" -Force
- name: Create Package
shell: pwsh
run: tar -cvf azurekeyvaultstudio.macos-arm64.tar osx-arm64
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
run: |
cd ./src/uno/AzureKeyVaultStudio/AzureKeyVaultStudio
dotnet publish -f net10.0-desktop -r linux-x64 -p:SelfContained=true -p:PublishReadyToRun=true -p:Version=2.0.${{ github.run_number }} -c Release ./AzureKeyVaultStudio.csproj
New-Item -ItemType Directory -Path "linux-x64" -Force
New-Item -ItemType Directory -Path "$env:GITHUB_WORKSPACE/linux-x64" -Force
Move-Item -Path ".\bin\Release\net10.0-desktop\linux-x64\publish\*" -Destination "$env:GITHUB_WORKSPACE\linux-x64\" -Force
- name: Create Package
shell: pwsh
Expand Down
8 changes: 4 additions & 4 deletions src/avalonia/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $DebugPreference = 'continue';
Set-Content -Path "VERSION" -Value $BuildNumber -Force

$command = @"
dotnet publish ./src/Desktop/Desktop.csproj `
dotnet publish ./src/avalonia/Desktop/Desktop.csproj `
-r $Runtime `
-o .\src\publish `
-c Release `
Expand All @@ -32,7 +32,7 @@ dotnet publish ./src/Desktop/Desktop.csproj `
Write-Host $command -ForegroundColor Green


dotnet publish ./src/Desktop/Desktop.csproj `
dotnet publish ./src/avalonia/Desktop/Desktop.csproj `
-r $Runtime `
-o .\src\publish `
-c Release `
Expand Down Expand Up @@ -64,8 +64,8 @@ if ($Runtime -eq "osx-x64") {
foreach ($file in $filesToMove) {
Copy-Item -Path $file -Destination $macOSDir -Force
}
Copy-Item -Path ".\src\KeyVaultExplorer\Assets\Info.plist" -Destination $contentsDir -Force
Copy-Item -Path ".\src\KeyVaultExplorer\Assets\AppIcon.icns" -Destination $resourcesPath -Force
Copy-Item -Path ".\src\avalonia\KeyVaultExplorer\Assets\Info.plist" -Destination $contentsDir -Force
Copy-Item -Path ".\src\avalonia\KeyVaultExplorer\Assets\AppIcon.icns" -Destination $resourcesPath -Force

# $filesToModify = Get-ChildItem -Path $macOSDir
# foreach ($file in $filesToModify) {
Expand Down
2 changes: 1 addition & 1 deletion src/uno/AzureKeyVaultStudio.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<File Path="Directory.Packages.props" />
<File Path="global.json" />
</Folder>
<Project Path="AzureKeyVaultStudio/AzureKeyVaultStudio.csproj">
<Project Path="../../../AzureKeyVaultStudio/AzureKeyVaultStudio/AzureKeyVaultStudio.csproj">
<Deploy />
</Project>
</Solution>
Loading