[Bug] .no-updater doesn't work when after build #211

Closed
opened 2026-04-05 16:16:44 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @kazu0617 on 11/16/2025

Describe the bug
https://github.com/vrcx-team/VRCX/wiki/Building-from-source#linux-x64arm64
After building according to this build manual, if you start vrcx located in build/linux-unpacked, the rootDir will be forcefully set to point to the built package.

I checked AppPath from this patch:

--- a/src-electron/main.js
+++ b/src-electron/main.js
@@ -50,0 +51 @@ const rootDir = app.getAppPath();
+console.log('AppPath:', rootDir);

And check version. if I use builded one:

kazu@Mycomputer:~/Documents/personal/vrcx-git/build/linux-unpacked# ./vrcx --config=/mnt/data-ntfs/TEMP/vrcx/  
Checking for .NET installation at: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/dotnet-runtime/dotnet
AppPath: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/app.asar
Relaunching with args: [ '--ozone-platform-hint=auto', '--config=/mnt/data-ntfs/TEMP/vrcx/' ]
kazu@Mycomputer:~/Documents/personal/vrcx-git/build/linux-unpacked#
Checking for .NET installation at: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/dotnet-runtime/dotnet
AppPath: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/app.asar

And, if not builds one:

kazu@MyComputer:~/Documents/personal/vrcx-git# npm run start-electron --no-install --no-desktop                                   
npm warn Unknown cli config "--install". This will stop working in the next major version of npm.
npm warn Unknown cli config "--desktop". This will stop working in the next major version of npm.

> vrcx@2022.01.01 start-electron
> electron .

Checking for .NET installation at: dotnet
AppPath: /home/kazu/Documents/personal/vrcx-git
Relaunching with args: [ '--ozone-platform-hint=auto', '.' ]
kazu@MyComputer:~/Documents/personal/vrcx-git# Checking for .NET installation at: dotnet
AppPath: /home/kazu/Documents/personal/vrcx-git

This is why the .no-updater check in noUpdater is no longer working.
For now, we're addressing this issue by forcing it to true.

--- a/src-electron/main.js
+++ b/src-electron/main.js
@@ -60,3 +60 @@ const startup = args.includes('--startup');
-const noUpdater =
-    args.includes('--no-updater') ||
-    fs.existsSync(path.join(rootDir, '.no-updater'));
+const noUpdater = true;

To Reproduce
Steps to reproduce the behavior:

  1. patch from main.js to check AppPath.
  2. Build linux-x64 via this introduciton.
  3. type npm run start-electron
  4. See AppPath from logs, then quit VRCX.
  5. type cd build/linux-unpacked/, then ./vrcx
  6. See AppPath from logs.

Expected behavior
when step5, the properly path build/linux-unpacked or create new value to check that path.

Screenshots

  • non-build:
    Image

  • build:
    Image

What version you are running
VRCX (Linux) 2025.11.16

*Originally created by @kazu0617 on 11/16/2025* **Describe the bug** https://github.com/vrcx-team/VRCX/wiki/Building-from-source#linux-x64arm64 After building according to this build manual, if you start vrcx located in build/linux-unpacked, the rootDir will be forcefully set to point to the built package. I checked AppPath from this patch: ``` --- a/src-electron/main.js +++ b/src-electron/main.js @@ -50,0 +51 @@ const rootDir = app.getAppPath(); +console.log('AppPath:', rootDir); ``` And check version. if I use builded one: ``` kazu@Mycomputer:~/Documents/personal/vrcx-git/build/linux-unpacked# ./vrcx --config=/mnt/data-ntfs/TEMP/vrcx/ Checking for .NET installation at: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/dotnet-runtime/dotnet AppPath: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/app.asar Relaunching with args: [ '--ozone-platform-hint=auto', '--config=/mnt/data-ntfs/TEMP/vrcx/' ] kazu@Mycomputer:~/Documents/personal/vrcx-git/build/linux-unpacked# Checking for .NET installation at: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/dotnet-runtime/dotnet AppPath: /home/kazu/Documents/personal/vrcx-git/build/linux-unpacked/resources/app.asar ``` And, if not builds one: ``` kazu@MyComputer:~/Documents/personal/vrcx-git# npm run start-electron --no-install --no-desktop npm warn Unknown cli config "--install". This will stop working in the next major version of npm. npm warn Unknown cli config "--desktop". This will stop working in the next major version of npm. > vrcx@2022.01.01 start-electron > electron . Checking for .NET installation at: dotnet AppPath: /home/kazu/Documents/personal/vrcx-git Relaunching with args: [ '--ozone-platform-hint=auto', '.' ] kazu@MyComputer:~/Documents/personal/vrcx-git# Checking for .NET installation at: dotnet AppPath: /home/kazu/Documents/personal/vrcx-git ``` This is why the `.no-updater` check in `noUpdater` is no longer working. For now, we're addressing this issue by forcing it to `true`. ``` --- a/src-electron/main.js +++ b/src-electron/main.js @@ -60,3 +60 @@ const startup = args.includes('--startup'); -const noUpdater = - args.includes('--no-updater') || - fs.existsSync(path.join(rootDir, '.no-updater')); +const noUpdater = true; ``` **To Reproduce** Steps to reproduce the behavior: 1. patch from main.js to check AppPath. 1. Build linux-x64 via [this introduciton](https://github.com/vrcx-team/VRCX/wiki/Building-from-source#linux-x64arm64). 2. type `npm run start-electron` 3. See AppPath from logs, then quit VRCX. 4. type `cd build/linux-unpacked/`, then `./vrcx` 5. See AppPath from logs. **Expected behavior** when step5, the properly path `build/linux-unpacked` or create new value to check that path. **Screenshots** - non-build: <img width="880" height="103" alt="Image" src="https://github.com/user-attachments/assets/60a2229a-62f9-4071-b711-2968447be8bf" /> - build: <img width="1323" height="150" alt="Image" src="https://github.com/user-attachments/assets/3c22b67f-a5ad-4e45-b2e5-89a7a5cdd8d6" /> **What version you are running** VRCX (Linux) 2025.11.16
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#211