question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Win folder empty after install

See original GitHub issue

Hello,

Electron-Builder Version: 23.0.3 Node Version: v16.14.0 Electron Version: 17.1.2 Electron Type (current, beta, nightly): current Target: Window and MacOS

I try build new App Svelte and Electron with tutorial : https://dev.to/khangnd/build-a-desktop-app-with-electron-and-svelte-44dp

I develop and build on MacBook M1 Pro, when i install app on Windows the shortcut is break, when i explore folder install is empty … juste 1 file “Uninstall MyProgramm.exe” …

Did I miss something ?

EDIT-1 : I have try with “electron-quick-start 17.1.2” and “electron-builder 22.14.13” only, same problem… EDIT-2 : It’s Working build on Windows 10…

package.json

{
  "name": "svelte-app",
  "version": "0.1.4",
  "private": true,
  "main": "index.js",
  "scripts": {
    "build": "rollup -c",
    "dev": "rollup -c -w",
    "start": "electron .",
    "dist": "npm run build && electron-builder build --mac --win"
  },
  "devDependencies": {
    "@rollup/plugin-commonjs": "^17.0.0",
    "@rollup/plugin-node-resolve": "^11.0.0",
    "electron": "^17.1.2",
    "electron-builder": "^23.0.3",
    "rollup": "^2.3.4",
    "rollup-plugin-css-only": "^3.1.0",
    "rollup-plugin-livereload": "^2.0.0",
    "rollup-plugin-svelte": "^7.0.0",
    "rollup-plugin-terser": "^7.0.0",
    "svelte": "^3.0.0"
  },
  "dependencies": {
    "sirv-cli": "^2.0.0"
  },
  "build": {
    "appId": "com.programme",
    "productName": "Programme",
    "copyright": "Copyright © 2022 Programme",
    "win": {
      "icon": "build/icon.png",
      "publisherName": "Linra Games",
      "target": "nsis"
    },
    "nsis": {
      "oneClick": false,
      "perMachine": true,
      "allowToChangeInstallationDirectory": true
    }
  }
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

4reactions
stuartaccentcommented, Apr 28, 2022

Had the same issue then realised i was building an arm64 based windows version on the m1 by not specifying the arch.

Below fixed it for me.

"win": {
    "icon": "...",
    "target": {
      "target": "NSIS",
      "arch": [
        "x64"
      ]
    }
  }
1reaction
LinraGamescommented, Apr 29, 2022

It’s Works, thank’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Folder Shows Empty but Files Are There Windows 10/8/7
The possible causes of the folder show empty but files are there is virus or malware infection. The virus hides the files and...
Read more >
Does Windows Show a Folder as Empty Despite Having Files ...
Go to the folder that seems empty, but the size says otherwise. · Navigate to the View tab in File Explorer. · Check...
Read more >
Folder Shows Empty in This PC and USB Drive, but Files Are ...
This Folder Is Empty; Method 1. Disconnect External Hard Drives or USB Drives; Method 2. Display Hidden Files; Method 3. Check Drives for...
Read more >
Folder empty after update - Microsoft Community
Folder empty after update. I just restarted my computer as a part of a Windows update and a seemingly random folder is now...
Read more >
[SOLVED] Windows 10 Error: "This Folder is Empty"
Methods to Fix the Windows 10 Error: This Folder is Empty · 1. Try Different Port · 2. Use Stellar Data Recovery Professional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found