mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
build: add arm64 architecture support
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -42,6 +42,7 @@ jobs:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
package: [deb, rpm]
|
||||
architecture: [x64, arm64]
|
||||
include:
|
||||
- package: deb
|
||||
docker_image: "debian:12"
|
||||
@@ -76,7 +77,7 @@ jobs:
|
||||
npm install
|
||||
|
||||
- name: Build Release Files
|
||||
run: ${{ matrix.package == 'deb' && 'npm run build:deb' || matrix.package == 'rpm' && 'npm run build:rpm' }}
|
||||
run: ${{ matrix.package == 'deb' && 'npm run build:deb -- --${{ matrix.architecture }}' || matrix.package == 'rpm' && 'npm run build:rpm -- --${{ matrix.architecture }}' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
appId: "store.spark-app.apm"
|
||||
asar: true
|
||||
productName: "apm-app-store"
|
||||
artifactName: "apm-app-store_${version}_${os}.${ext}"
|
||||
artifactName: "apm-app-store_${version}_${os}_${arch}.${ext}"
|
||||
directories:
|
||||
output: "release/${version}"
|
||||
files:
|
||||
|
||||
@@ -20,7 +20,7 @@ export const handleInstall = () => {
|
||||
name: currentApp.value.Name,
|
||||
pkgname: currentApp.value.Pkgname,
|
||||
version: currentApp.value.Version,
|
||||
icon: `${APM_STORE_BASE_URL}/${APM_STORE_ARCHITECTURE()}/${currentApp.value._category}/${currentApp.value.Pkgname}/icon.png`,
|
||||
icon: `${APM_STORE_BASE_URL}/${window.apm_store.arch}/${currentApp.value._category}/${currentApp.value.Pkgname}/icon.png`,
|
||||
status: 'queued',
|
||||
progress: 0,
|
||||
downloadedSize: 0,
|
||||
|
||||
1
src/vite-env.d.ts
vendored
1
src/vite-env.d.ts
vendored
@@ -9,4 +9,5 @@ declare module '*.vue' {
|
||||
interface Window {
|
||||
// expose in the `electron/preload/index.ts`
|
||||
ipcRenderer: import('electron').IpcRenderer
|
||||
apm_store: any
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user