mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 02:03:49 +02:00
.no-updater file
This commit is contained in:
@@ -46,6 +46,7 @@ if (!isDotNetInstalled()) {
|
|||||||
const VRCX_URI_PREFIX = 'vrcx';
|
const VRCX_URI_PREFIX = 'vrcx';
|
||||||
let isOverlayActive = false;
|
let isOverlayActive = false;
|
||||||
let appIsQuitting = false;
|
let appIsQuitting = false;
|
||||||
|
const rootDir = app.getAppPath();
|
||||||
|
|
||||||
// Get launch arguments
|
// Get launch arguments
|
||||||
let appImagePath = process.env.APPIMAGE;
|
let appImagePath = process.env.APPIMAGE;
|
||||||
@@ -54,7 +55,9 @@ const noInstall = args.includes('--no-install');
|
|||||||
const x11 = args.includes('--x11');
|
const x11 = args.includes('--x11');
|
||||||
const noDesktop = args.includes('--no-desktop');
|
const noDesktop = args.includes('--no-desktop');
|
||||||
const startup = args.includes('--startup');
|
const startup = args.includes('--startup');
|
||||||
const noUpdater = args.includes('--no-updater');
|
const noUpdater =
|
||||||
|
args.includes('--no-updater') ||
|
||||||
|
fs.existsSync(path.join(rootDir, '.no-updater'));
|
||||||
if (process.defaultApp) {
|
if (process.defaultApp) {
|
||||||
if (process.argv.length >= 2) {
|
if (process.argv.length >= 2) {
|
||||||
app.setAsDefaultProtocolClient(VRCX_URI_PREFIX, process.execPath, [
|
app.setAsDefaultProtocolClient(VRCX_URI_PREFIX, process.execPath, [
|
||||||
@@ -69,7 +72,6 @@ const homePath = getHomePath();
|
|||||||
tryRelaunchWithArgs(args);
|
tryRelaunchWithArgs(args);
|
||||||
tryCopyFromWinePrefix();
|
tryCopyFromWinePrefix();
|
||||||
|
|
||||||
const rootDir = app.getAppPath();
|
|
||||||
const armPath = path.join(rootDir, 'build/Electron/VRCX-Electron-arm64.cjs');
|
const armPath = path.join(rootDir, 'build/Electron/VRCX-Electron-arm64.cjs');
|
||||||
if (fs.existsSync(armPath)) {
|
if (fs.existsSync(armPath)) {
|
||||||
require(armPath);
|
require(armPath);
|
||||||
@@ -311,7 +313,7 @@ function createWindow() {
|
|||||||
y,
|
y,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
icon: path.join(rootDir, 'VRCX.png'),
|
icon: path.join(rootDir, 'images/VRCX.png'),
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
titleBarStyle: 'hiddenInset',
|
titleBarStyle: 'hiddenInset',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
@@ -418,7 +420,7 @@ function createWristOverlayWindowOffscreen() {
|
|||||||
y,
|
y,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
icon: path.join(rootDir, 'VRCX.png'),
|
icon: path.join(rootDir, 'images/VRCX.png'),
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
frame: false,
|
frame: false,
|
||||||
@@ -481,7 +483,7 @@ function createHmdOverlayWindowOffscreen() {
|
|||||||
y,
|
y,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
icon: path.join(rootDir, 'VRCX.png'),
|
icon: path.join(rootDir, 'images/VRCX.png'),
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
frame: false,
|
frame: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user