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:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
package: [deb, rpm]
|
package: [deb, rpm]
|
||||||
|
architecture: [x64, arm64]
|
||||||
include:
|
include:
|
||||||
- package: deb
|
- package: deb
|
||||||
docker_image: "debian:12"
|
docker_image: "debian:12"
|
||||||
@@ -76,7 +77,7 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
|
|
||||||
- name: Build Release Files
|
- 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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
appId: "store.spark-app.apm"
|
appId: "store.spark-app.apm"
|
||||||
asar: true
|
asar: true
|
||||||
productName: "apm-app-store"
|
productName: "apm-app-store"
|
||||||
artifactName: "apm-app-store_${version}_${os}.${ext}"
|
artifactName: "apm-app-store_${version}_${os}_${arch}.${ext}"
|
||||||
directories:
|
directories:
|
||||||
output: "release/${version}"
|
output: "release/${version}"
|
||||||
files:
|
files:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export const handleInstall = () => {
|
|||||||
name: currentApp.value.Name,
|
name: currentApp.value.Name,
|
||||||
pkgname: currentApp.value.Pkgname,
|
pkgname: currentApp.value.Pkgname,
|
||||||
version: currentApp.value.Version,
|
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',
|
status: 'queued',
|
||||||
progress: 0,
|
progress: 0,
|
||||||
downloadedSize: 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 {
|
interface Window {
|
||||||
// expose in the `electron/preload/index.ts`
|
// expose in the `electron/preload/index.ts`
|
||||||
ipcRenderer: import('electron').IpcRenderer
|
ipcRenderer: import('electron').IpcRenderer
|
||||||
|
apm_store: any
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user