Skip to content

Commit

Permalink
remove: msix bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
yannouuuu committed Aug 5, 2024
1 parent 0cb45bd commit 1b2b59f
Showing 1 changed file with 2 additions and 59 deletions.
61 changes: 2 additions & 59 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
Write-Host "Error: Source file $sourcePath not found"
exit 1
}
- name: Prepare App Installer package
run: |
cd zed
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
<MainBundle Name="Zed"
Version="$version"
Publisher="CN=ZedIndustries"
Uri="https://github.com/${{ github.repository }}/releases/download/${{ env.LATEST_TAG }}/Zed-windows-amd64-${{ env.LATEST_TAG }}.msixbundle"/>
Uri="https://github.com/${{ github.repository }}/releases/download/${{ env.LATEST_TAG }}/Zed-windows-amd64-${{ env.LATEST_TAG }}.exe"/>
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="0"/>
</UpdateSettings>
Expand Down Expand Up @@ -267,64 +267,12 @@ jobs:
exit 1
}
- name: Create MSIX bundle
working-directory: ./zed
run: |
$outputBundle = "Zed-windows-amd64-$env:LATEST_TAG.msixbundle"
$mappingFile = "mapping.txt"
$zedExePath = "target\release\Zed.exe"
# Verify Zed.exe exists
if (-not (Test-Path $zedExePath)) {
Write-Host "Error: Zed.exe not found at $zedExePath"
Write-Host "Searching for Zed.exe:"
Get-ChildItem -Recurse -Filter Zed.exe | Select-Object FullName, Length, CreationTime, LastWriteTime
exit 1
}
# Create mapping file with correct path
@"
[Files]
"$zedExePath" "Zed.exe"
"AppxManifest.xml" "AppxManifest.xml"
"assets\Square44x44Logo.png" "assets\Square44x44Logo.png"
"assets\Square150x150Logo.png" "assets\Square150x150Logo.png"
"assets\LargeTile.png" "assets\LargeTile.png"
"assets\SmallTile.png" "assets\SmallTile.png"
"assets\StoreLogo.png" "assets\StoreLogo.png"
"@ | Out-File -Encoding utf8 $mappingFile
# Display mapping file contents
Write-Host "Mapping file contents:"
Get-Content $mappingFile
# Verify all files in mapping exist
Get-Content $mappingFile | Select-String -Pattern '^"([^"]+)"' | ForEach-Object {
$file = $_.Matches.Groups[1].Value
if (Test-Path $file) {
Write-Host "File exists: $file"
} else {
Write-Host "Error: File not found: $file"
}
}
# Create the MSIX bundle
& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\MakeAppx.exe" bundle /f $mappingFile /p $outputBundle
if (Test-Path $outputBundle) {
Write-Host "MSIX bundle created successfully: $outputBundle"
} else {
Write-Host "Error: Failed to create MSIX bundle"
exit 1
}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Zed-windows-amd64-${{ env.LATEST_TAG }}
path: |
zed/target/release/Zed-windows-amd64-${{ env.LATEST_TAG }}.exe
zed/Zed-windows-amd64-${{ env.LATEST_TAG }}.msixbundle
zed/Zed.appinstaller
upload-to-release:
Expand Down Expand Up @@ -396,11 +344,6 @@ jobs:
--data-binary @Zed-windows-amd64-${{ env.LATEST_TAG }}.exe \
"$upload_url?name=Zed-windows-amd64-${{ env.LATEST_TAG }}.exe"
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @Zed-windows-amd64-${{ env.LATEST_TAG }}.msixbundle \
"$upload_url?name=Zed-windows-amd64-${{ env.LATEST_TAG }}.msixbundle"
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @Zed.appinstaller \
Expand Down

0 comments on commit 1b2b59f

Please sign in to comment.