Build an Electron App (generate build & setup)

there,

I’ve been working for over 8 hours trying to generate setup and build my ElectronJS application (v18.0.0 mandatory).

Here is my package.json :

{
  "name": "myapp",
  "version": "0.0.1",
  "homepage": "https://.../",
  "description": "(description)",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "build": "electron-builder"
  },
  "build": {
    "appId": "com.my.app",
    "productName": "projectname",
    "copyright": "Copyright © 2024 Project Name",
    "directories": {
      "output": "dist"
    },
    "extraMetadata": {
      "version": "0.0.1 Beta",
      "description": "Test",
      "author": "OGHub.fr"
    },
    "protocols": {
      "name": "appname",
      "schemes": [
        "appname"
      ]
    },
    "files": [
      "main.js",
      "app/*",
      "scratch/*",
      "preload.js",
      "app/**/*"
    ],
    "win": {
      "target": [
        "msi"
      ],
      "icon": "app/img/logo.ico",
      "publisherName": "Publisher Name"
    },
    "mac": {
      "target": [
        "dmg"
      ],
      "icon": "app/img/logo.ico"
    },
    "linux": {
      "target": [
        "AppImage",
        "deb",
        "rpm"
      ],
      "icon": "assets/icons/png"
    },
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "installerIcon": "app/img/logo.ico",
      "uninstallerIcon": "app/img/logo.ico",
      "installerHeader": "app/img/logo.ico",
      "include": "installer.nsh"
    }
  },
  "keywords": [
  ],
  "author": "Author name",
  "license": "ISC",
  "dependencies": {
    "axios": "^1.7.2",
    "child_process": "^1.0.2",
    "form-data": "^4.0.0",
    "fs": "^0.0.1-security",
    "node-localstorage": "^3.0.5",
    "registry-js": "^1.16.0",
    "trucksim-telemetry": "^0.21.0"
  },
  "devDependencies": {
    "electron": "^18.0.0",
    "electron-builder": "^24.13.3"
  }
}

When I run npm run build, it generates these :

dist/
-> /win-unpacked
-> myapp.exe (good okay), BUT, i have in extrameta data “Github Inc”, “Version: v18.0.0” and “App Name: Electron”.

And, same, I don’t know how to generate a “win-unpacked” setup anymore, the last time I had done something under electron was in 2018 with electron-wininstaller, but it doesn’t work for me anymore.

Another thing, when I use electron build, I also have this information:

npm run build
Debugger attached.

> [email protected] build
> electron-builder

Debugger attached.
  • electron-builder  version=24.13.3 os=10.0.22621
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=distbuilder-effective-config.yaml
  • rebuilding native dependencies  [email protected], [email protected] platform=win32 arch=x64
  • install prebuilt binary  name=registry-js version=1.16.0 platform=win32 arch=x64 napi=
• packaging       platform=win32 arch=x64 electron=18.0.0 appOutDir=distwin-unpacked
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.191s
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: AppDataLocalelectron-builderCachewinCodeSign92952403.7z
    --
    Path = AppDataLocalelectron-builderCachewinCodeSign92952403.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2


    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : Le client ne dispose pas d'un privil�ge n�cessaire. : AppDataLocalelectron-builderCachewinCodeSign98865179darwin10.12liblibcrypto.dylib
    ERROR: Cannot create symbolic link : Le client ne dispose pas d'un privil�ge n�cessaire. : AppDataLocalelectron-builderCachewinCodeSign98865179darwin10.12liblibssl.dylib

                    command='DesktopOGHubOGBridgeelectron13node_modules7zip-binwinx647za.exe' x -bd 'AppDataLocalelectron-builderCachewinCodeSign98865179.7z' '-oAppDataLocalelectron-builderCachewinCodeSign98865179'
                    workingDir=AppDataLocalelectron-builderCachewinCodeSign

Thank’s !

electron-wininstaller ; electron forge ; electron-builder electron-packager.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật