mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-02-05 03:38:52 -06:00
- Add build troubleshooting and Windows-specific guides - Document branding guidelines and asset management - Add desktop build configuration documentation - Include symlink and OneDrive fix guides - Add code signing and permissions documentation - Document quick start guides for various scenarios
2.3 KiB
2.3 KiB
Windows Build Permissions Fix
Issue: Symbolic Link Permission Error
Error:
ERROR: Cannot create symbolic link : Een van de vereiste bevoegdheden is niet aan de client toegekend.
This means Windows cannot create symbolic links because of missing permissions.
Solutions
Solution 1: Enable Developer Mode (Recommended)
-
Open Windows Settings:
- Press
Win + I - Go to Privacy & Security → For developers
- Press
-
Enable Developer Mode:
- Turn on Developer Mode
- This allows creating symbolic links without administrator privileges
-
Restart your terminal/PowerShell
-
Try building again:
scripts\build-desktop-simple.bat
Solution 2: Run as Administrator
- Right-click PowerShell or Command Prompt
- Choose "Run as Administrator"
- Navigate to project and build:
cd C:\Users\dries\OneDrive\Dokumente\GitHub\TimeTracker scripts\build-desktop-simple.bat
Solution 3: Disable Code Signing (Already Applied)
The desktop/package.json has been updated to disable code signing for development builds:
"win": {
"sign": false,
"signingHashAlgorithms": []
}
This prevents electron-builder from downloading and extracting the code signing tools that cause the symlink issue.
Solution 4: Clear electron-builder Cache
If the cache is corrupted:
Remove-Item -Path "$env:LOCALAPPDATA\electron-builder\Cache\winCodeSign" -Recurse -Force -ErrorAction SilentlyContinue
Then try building again.
Quick Fix
Enable Developer Mode (fastest):
Win + I→ Privacy & Security → For developers- Enable Developer Mode
- Restart terminal
- Build again
Or run as Administrator:
- Right-click PowerShell → Run as Administrator
- Run build script
Why This Happens
- electron-builder downloads code signing tools
- These tools include macOS files that use symbolic links
- Windows requires special permissions to create symlinks
- Developer Mode or Administrator privileges are needed
Prevention
The build configuration has been updated to:
- Disable code signing for development builds
- This avoids downloading the problematic tools
- Production builds can re-enable signing if needed
Last Updated: 2024