forked from unab0mb/7h
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Migrate to .NET 6 - Deprecate EasyHook in favor of a custom CLR + Detours logic ( helps us keeping code scaling in future ) - Use native Powershell instead of the library - .ci/prepare.ps1: Enable vcpkg integration with Visual Studio - .ci/package.ps1: Use the new release path - .ci/azure.yml: Enable vcpkg integration - .ci/azure.yml: Use the latest NuGet 6.x - .ci/azure.yml: Enable parallel builds - .iss/installer.iss: Use the new release path Thanks to Benjamin Moir <https://github.com/DaZombieKiller> for helping on this huge milestone! You rock!
- Loading branch information
1 parent
cdfc40d
commit bc2ef07
Showing
52 changed files
with
2,561 additions
and
2,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mkdir ${env:buildPath}\.dist | Out-Null | ||
|
||
Set-Location ${env:buildPath}\SeventhHeavenUI\bin\Release | ||
Set-Location "${env:buildPath}\SeventhHeavenUI\bin\Release\net6.0-windows" | ||
7z a "${env:buildPath}\.dist\${env:_RELEASE_NAME}-${env:_RELEASE_VERSION}_${env:_RELEASE_CONFIGURATION}.zip" ".\*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,38 @@ | ||
if ($env:_BUILD_BRANCH -eq "refs/heads/master" -Or $env:_BUILD_BRANCH -eq "refs/tags/canary") { | ||
$env:_IS_BUILD_CANARY = "true" | ||
$env:_IS_GITHUB_RELEASE = "true" | ||
} | ||
elseif ($env:_BUILD_BRANCH -like "refs/tags/*") { | ||
$env:_BUILD_VERSION = $env:_BUILD_VERSION.Substring(0, $env:_BUILD_VERSION.LastIndexOf('.')) + ".0" | ||
$env:_IS_GITHUB_RELEASE = "true" | ||
} | ||
$env:_RELEASE_VERSION = "v${env:_BUILD_VERSION}" | ||
|
||
$vcpkgRoot = "C:\vcpkg" | ||
$vcpkgBaseline = [string](jq --arg baseline "builtin-baseline" -r '.[$baseline]' 7thWrapperLoader/vcpkg.json) | ||
$vcpkgOriginUrl = &"git" -C $vcpkgRoot remote get-url origin | ||
$vcpkgBranchName = &"git" -C $vcpkgRoot branch --show-current | ||
|
||
Write-Output "--------------------------------------------------" | ||
Write-Output "BUILD CONFIGURATION: $env:_RELEASE_CONFIGURATION" | ||
Write-Output "RELEASE VERSION: $env:_RELEASE_VERSION" | ||
Write-Output "VCPKG ORIGIN: $vcpkgOriginUrl" | ||
Write-Output "VCPKG BRANCH: $vcpkgBranchName" | ||
Write-Output "VCPKG BASELINE: $vcpkgBaseline" | ||
Write-Output "--------------------------------------------------" | ||
|
||
Write-Host "##vso[task.setvariable variable=_BUILD_VERSION;]${env:_BUILD_VERSION}" | ||
Write-Host "##vso[task.setvariable variable=_RELEASE_VERSION;]${env:_RELEASE_VERSION}" | ||
Write-Host "##vso[task.setvariable variable=_IS_BUILD_CANARY;]${env:_IS_BUILD_CANARY}" | ||
Write-Host "##vso[task.setvariable variable=_IS_GITHUB_RELEASE;]${env:_IS_GITHUB_RELEASE}" | ||
|
||
git -C $vcpkgRoot pull --all | ||
git -C $vcpkgRoot checkout $vcpkgBaseline | ||
git -C $vcpkgRoot clean -fxd | ||
|
||
cmd.exe /c "call $vcpkgRoot\bootstrap-vcpkg.bat" | ||
|
||
mkdir "C:\vcpkg\downloads\tools\yasm\1.3.0.6" | Out-Null | ||
Invoke-WebRequest -Uri "http://www.tortall.net/projects/yasm/snapshots/v1.3.0.6.g1962/yasm-1.3.0.6.g1962.exe" -SkipCertificateCheck -OutFile "C:\vcpkg\downloads\tools\yasm\1.3.0.6\yasm.exe" | ||
|
||
vcpkg integrate install |
Oops, something went wrong.