Skip to content

Commit

Permalink
[CI]: Build arm64 version for linux (#4008)
Browse files Browse the repository at this point in the history
* ci: build arm64 version for linux

* ci!: make consistant naming for linux builds

* fix: flatpak build
  • Loading branch information
imLinguin authored Nov 17, 2024
1 parent 6bce834 commit 3eff5b1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,25 @@ jobs:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraftIdEdge }}
if: runner.os == 'Linux' && inputs.publish-snap
- name: Build AppImage version
run: pnpm dist:linux AppImage --publish=never
run: pnpm dist:linux AppImage --x64 --arm64 --publish=never
if: runner.os == 'Linux'
- name: Upload built version
uses: actions/upload-artifact@v3
with:
name: ${{ (matrix.os == 'windows-2022' && 'win-portable' ) ||
(matrix.os == 'macos-12' && 'mac-x64' ) ||
(matrix.os == 'ubuntu-22.04' && 'linux-AppImage') }}
(matrix.os == 'ubuntu-22.04' && 'linux-AppImage-x64') }}
path: ${{ (matrix.os == 'windows-2022' && 'dist/Heroic*.exe' ) ||
(matrix.os == 'macos-12' && 'dist/Heroic*x64.dmg' ) ||
(matrix.os == 'ubuntu-22.04' && 'dist/Heroic-*.AppImage') }}
(matrix.os == 'ubuntu-22.04' && 'dist/Heroic*x86_64.AppImage') }}
retention-days: 14
- name: Upload linux ARM version
uses: actions/upload-artifact@v3
with:
name: linux-AppImage-arm64
path: dist/Heroic*arm64.AppImage
retention-days: 14
if: runner.os == 'Linux'
- name: Upload macOS ARM version
uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ dmg:
path: /Applications

linux:
artifactName: ${productName}-${version}-linux-${arch}.${ext}
category: Game
icon: build/icon.icns
description: An Open Source Launcher for GOG and Epic Games
desktop:
Name: Heroic Games Launcher
Comment[de]: Ein Open Source Spielelauncher for GOG und Epic Games
Comment[de]: Ein OSS-Spielelauncher für GOG, Epic Games und Amazon Games
Comment[pl]: Otwartoźródłowy launcher dla GOG, Epic Games i Amazon Games
files:
- build/bin/*/linux/*
- build/bin/x64/win32/GalaxyCommunication.exe
Expand Down
5 changes: 3 additions & 2 deletions flatpak/com.heroicgameslauncher.hgl.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Terminal=false
Type=Application
Icon=com.heroicgameslauncher.hgl
StartupWMClass=Heroic
Comment=An Open Source GOG and Epic Games launcher
Comment[de]=Ein Open Source Spielelauncher for GOG und Epic Games
Comment=An Open Source Launcher for GOG, Epic Games and Amazon Games
Comment[de]=Ein OSS-Spielelauncher für GOG, Epic Games und Amazon Games
Comment[pl]=Otwartoźródłowy launcher dla GOG, Epic Games i Amazon Games
MimeType=x-scheme-handler/heroic;
Categories=Game;
4 changes: 2 additions & 2 deletions flatpak/prepareFlatpak.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main() {
let releaseTime = ""
if (process.argv[2] === "release") {
const { data } = await axios.get("https://api.github.com/repos/Heroic-Games-Launcher/HeroicGamesLauncher/releases/latest")
const appimage = data.assets.find((asset) => asset.browser_download_url.includes(".AppImage"))
const appimage = data.assets.find((asset) => asset.browser_download_url.includes("x86_64.AppImage"))
const outputFile = `${os.tmpdir()}/Heroic.AppImage`
child_process.spawnSync("curl", ["-L", appimage.browser_download_url, "-o", outputFile, "--create-dirs"])
const outputContent = fs.readFileSync(outputFile)
Expand All @@ -32,7 +32,7 @@ async function main() {
} else {
placeholder = [
"type: file",
`path: "../dist/Heroic-${package.version}.AppImage"`
`path: "../dist/Heroic-${package.version}-linux-x86_64.AppImage"`
].join("\n ")
releaseTime = new Date().toISOString().split('T')[0]
}
Expand Down
3 changes: 2 additions & 1 deletion meta/downloadHelperBinaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ async function downloadComet() {
win32: 'comet-x86_64-pc-windows-msvc.exe'
},
arm64: {
darwin: 'comet-aarch64-apple-darwin'
darwin: 'comet-aarch64-apple-darwin',
linux: 'comet-aarch64-unknown-linux-gnu'
}
})
])
Expand Down
Binary file added public/bin/arm64/linux/vulkan-helper
Binary file not shown.

0 comments on commit 3eff5b1

Please sign in to comment.