mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix icon path
This commit is contained in:
@@ -92,10 +92,6 @@
|
|||||||
"src-electron/libs/linux/libopenvr_api.so"
|
"src-electron/libs/linux/libopenvr_api.so"
|
||||||
],
|
],
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
|
||||||
"from": "images/VRCX.png",
|
|
||||||
"to": "VRCX.png"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"from": "build/Electron/",
|
"from": "build/Electron/",
|
||||||
"to": "app.asar.unpacked/build/Electron/"
|
"to": "app.asar.unpacked/build/Electron/"
|
||||||
@@ -129,7 +125,7 @@
|
|||||||
"target": [
|
"target": [
|
||||||
"AppImage"
|
"AppImage"
|
||||||
],
|
],
|
||||||
"icon": "VRCX.png",
|
"icon": "images/VRCX.png",
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"executableName": "vrcx",
|
"executableName": "vrcx",
|
||||||
"desktop": {
|
"desktop": {
|
||||||
@@ -150,7 +146,7 @@
|
|||||||
"target": [
|
"target": [
|
||||||
"dmg"
|
"dmg"
|
||||||
],
|
],
|
||||||
"icon": "VRCX.png",
|
"icon": "images/VRCX.png",
|
||||||
"category": "public.app-category.utilities",
|
"category": "public.app-category.utilities",
|
||||||
"executableName": "VRCX"
|
"executableName": "VRCX"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ async function downloadFile(url, targetPath) {
|
|||||||
if (response.statusCode !== 200) {
|
if (response.statusCode !== 200) {
|
||||||
reject(
|
reject(
|
||||||
new Error(
|
new Error(
|
||||||
`Failed to download, status code: ${response.statusCode}`
|
`Failed to download, url: ${url} status code: ${response.statusCode}`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
@@ -68,7 +68,10 @@ async function downloadDotnetRuntime(arch, platform) {
|
|||||||
} else if (platform === 'darwin') {
|
} else if (platform === 'darwin') {
|
||||||
dotnetPlatform = 'osx';
|
dotnetPlatform = 'osx';
|
||||||
} else if (platform === 'win32') {
|
} else if (platform === 'win32') {
|
||||||
dotnetPlatform = 'win';
|
// Windows is a zip file instead of tar.gz, which we do not handle here, skip
|
||||||
|
console.log('Skipping .NET runtime download on Windows');
|
||||||
|
return;
|
||||||
|
// dotnetPlatform = 'win';
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Unsupported platform: ${platform}`);
|
throw new Error(`Unsupported platform: ${platform}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -532,12 +532,12 @@ function createTray() {
|
|||||||
let tray = null;
|
let tray = null;
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
const image = nativeImage.createFromPath(
|
const image = nativeImage.createFromPath(
|
||||||
path.join(rootDir, 'images/VRCX.ico')
|
path.join(rootDir, 'images/VRCX.png')
|
||||||
);
|
);
|
||||||
tray = new Tray(image.resize({ width: 16, height: 16 }));
|
tray = new Tray(image.resize({ width: 16, height: 16 }));
|
||||||
} else if (process.platform === 'linux') {
|
} else if (process.platform === 'linux') {
|
||||||
const image = nativeImage.createFromPath(
|
const image = nativeImage.createFromPath(
|
||||||
path.join(rootDir, 'images/VRCX.ico')
|
path.join(rootDir, 'images/VRCX.png')
|
||||||
);
|
);
|
||||||
tray = new Tray(image.resize({ width: 64, height: 64 }));
|
tray = new Tray(image.resize({ width: 64, height: 64 }));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user