Refactor build workflow and sign script

This commit is contained in:
mr. M
2024-10-19 13:54:19 +02:00
parent bbb532b5aa
commit 3fa9e6d5b2
12 changed files with 13 additions and 27 deletions

View File

@@ -416,6 +416,10 @@ jobs:
path: updates-server
token: ${{ secrets.DEPLOY_KEY }}
- name: Download object files
run: |
git clone https://github.com/zen-browser/windows-binaries.git .github/workflows/object
- name: Copy update manifests
env:
RELEASE_BRANCH: ${{ inputs.update_branch }}

View File

@@ -1,6 +0,0 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.11" appVersion="1.0.1-a.11" platformVersion="131.0.3" buildID="20241019010346">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.11/windows-generic.mar" hashFunction="sha512" hashValue="13d46fba41f94c50bd8882d79afc8fffafef975a84fc84ac433a8de4d22395c227a073d6f0793f6f1b7cd8840d8911c97196b339d42bcb6e65fa54a5e78544de" size="72599296"/>
</update>
</updates>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.11" appVersion="1.0.1-a.11" platformVersion="131.0.3" buildID="20241019010346">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.11/windows-generic.mar" hashFunction="sha512" hashValue="13d46fba41f94c50bd8882d79afc8fffafef975a84fc84ac433a8de4d22395c227a073d6f0793f6f1b7cd8840d8911c97196b339d42bcb6e65fa54a5e78544de" size="72599296"/>
</update>
</updates>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.11" appVersion="1.0.1-a.11" platformVersion="131.0.3" buildID="20241019010350">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.11/windows.mar" hashFunction="sha512" hashValue="8372710f6fbaccfea3647363231551917ec21c31a579c6aca94227ba8d8dc78eea880ab289976e501ece0fe6ef0f3fb85a7c53704a2853b7d963f8fd07bb55c1" size="72522140"/>
</update>
</updates>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0"?>
<updates>
<update type="minor" displayVersion="1.0.1-a.11" appVersion="1.0.1-a.11" platformVersion="131.0.3" buildID="20241019010350">
<patch type="complete" URL="https://github.com/zen-browser/desktop/releases/download/1.0.1-a.11/windows.mar" hashFunction="sha512" hashValue="8372710f6fbaccfea3647363231551917ec21c31a579c6aca94227ba8d8dc78eea880ab289976e501ece0fe6ef0f3fb85a7c53704a2853b7d963f8fd07bb55c1" size="72522140"/>
</update>
</updates>

View File

@@ -10,13 +10,19 @@ git pull --recurse-submodules
mkdir windsign-temp -ErrorAction SilentlyContinue
# Download in parallel
Start-Job -Name "DownloadGitObjectsRepo" -ScriptBlock {
git clone https://github.com/zen-browser/windows-binaries.git windsign-temp\windows-binaries
}
gh run download $GithubRunId --name windows-x64-obj-specific -D windsign-temp\windows-x64-obj-specific
echo "Downloaded specific artifacts"
gh run download $GithubRunId --name windows-x64-obj-generic -D windsign-temp\windows-x64-obj-generic
echo "Downloaded generic artifacts"
Wait-Job -Name "DownloadGitObjectsRepo"
mkdir engine\obj-x86_64-pc-windows-msvc\ -ErrorAction SilentlyContinue
mkdir .\.github\workflows\object\ -ErrorAction SilentlyContinue
pnpm surfer ci --brand alpha
@@ -87,8 +93,8 @@ function SignAndPackage($name) {
echo "Invoking tar for $name"
# note: We need to sign it into a parent folder, called windows-x64-signed-$name
rmdir .\.github\workflows\object\windows-x64-signed-$name -Recurse -ErrorAction SilentlyContinue
mv .\windsign-temp\windows-x64-signed-$name .\.github\workflows\object\windows-x64-signed-$name -Force
rmdir .\windsign-temp\windows-binaries\windows-x64-signed-$name -Recurse -ErrorAction SilentlyContinue
mv windsign-temp\windows-x64-signed-$name .\windsign-temp\windows-binaries -Force
echo "Finished $name"
}