mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
arm64 support
This commit is contained in:
@@ -14,6 +14,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
const { t } = useI18n();
|
||||
|
||||
const state = reactive({
|
||||
arch: 'x64',
|
||||
appVersion: '',
|
||||
autoUpdateVRCX: 'Auto Download',
|
||||
latestAppVersion: '',
|
||||
@@ -40,6 +41,12 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
});
|
||||
|
||||
async function initVRCXUpdaterSettings() {
|
||||
if (!WINDOWS) {
|
||||
const arch = await window.electron.getArch();
|
||||
console.log('Architecture:', arch);
|
||||
state.arch = arch;
|
||||
}
|
||||
|
||||
const [autoUpdateVRCX, vrcxId] = await Promise.all([
|
||||
configRepository.getString('VRCX_autoUpdateVRCX', 'Auto Download'),
|
||||
configRepository.getString('VRCX_id', '')
|
||||
@@ -200,7 +207,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
}
|
||||
if (
|
||||
LINUX &&
|
||||
asset.name.endsWith('.AppImage') &&
|
||||
asset.name.endsWith(`${state.arch}.AppImage`) &&
|
||||
asset.content_type === 'application/octet-stream'
|
||||
) {
|
||||
downloadUrl = asset.browser_download_url;
|
||||
|
||||
3
src/types/globals.d.ts
vendored
3
src/types/globals.d.ts
vendored
@@ -30,6 +30,7 @@ declare global {
|
||||
) => Promise<any>;
|
||||
};
|
||||
electron: {
|
||||
getArch: () => Promise<string>;
|
||||
openFileDialog: () => Promise<string>;
|
||||
openDirectoryDialog: () => Promise<string>;
|
||||
desktopNotification: (
|
||||
@@ -63,7 +64,7 @@ declare global {
|
||||
overlayHand: int
|
||||
) => Promise<void>;
|
||||
ipcRenderer: {
|
||||
on(channel: String, func: (...args: unknown[]) => void)
|
||||
on(channel: String, func: (...args: unknown[]) => void);
|
||||
};
|
||||
};
|
||||
__APP_GLOBALS__: AppGlobals;
|
||||
|
||||
Reference in New Issue
Block a user