Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with linux VM for windows and certificate #45

Open
jurij opened this issue Aug 24, 2020 · 0 comments
Open

Building with linux VM for windows and certificate #45

jurij opened this issue Aug 24, 2020 · 0 comments

Comments

@jurij
Copy link

jurij commented Aug 24, 2020

My goal is to build with certificate for windows, with linux VM.
My configuration with runs-on: macos-latest works properly.

I tried runs-on: ubuntu-latest, since macos is expensive (1 macOS minute equals 10 regular minutes)

I could fix the first error with container: electronuserland/builder:wine

Error 1:

  • electron-builder  version=22.8.0 os=5.3.0-1034-azure
  • loaded configuration  file=package.json ("build" field)
  • packaging       platform=win32 arch=x64 electron=8.5.0 appOutDir=release/win-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v8.5.0/electron-v8.5.0-win32-x64.zip size=71 MB parts=4
  • downloaded      url=https://github.com/electron/electron/releases/download/v8.5.0/electron-v8.5.0-win32-x64.zip duration=527ms
  • 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=353ms
  ⨯ wine is required, please see https://electron.build/multi-platform-build#linux 

Now i get wine: '/github/home' is not owned by you and cant get further.

Error 2:

• electron-builder  version=22.8.0 os=5.3.0-1034-azure
• loaded configuration  file=package.json ("build" field)
• packaging       platform=win32 arch=x64 electron=8.5.0 appOutDir=release/win-unpacked
• downloading     url=https://github.com/electron/electron/releases/download/v8.5.0/electron-v8.5.0-win32-x64.zip size=71 MB parts=4
• downloaded      url=https://github.com/electron/electron/releases/download/v8.5.0/electron-v8.5.0-win32-x64.zip duration=517ms
• 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=387ms
⨯ cannot execute  cause=exit status 1
                errorOut=wine: '/github/home' is not owned by you, refusing to create a configuration directory there

                command=wine /github/home/.cache/electron-builder/winCodeSign/winCodeSign-2.6.0/rcedit-ia32.exe /__w/kvws-relaunch/kvws-relaunch/release/win-unpacked/EKBO-Datenpool.exe --set-version-string FileDescription EKBO-Datenpool --set-version-string ProductName EKBO-Datenpool --set-version-string LegalCopyright 'Copyright © 2020 Unique' --set-file-version 4.1.32 --set-product-version 4.1.32.0 --set-version-string InternalName EKBO-Datenpool --set-version-string OriginalFilename '' --set-version-string CompanyName Unique --set-icon /__w/kvws-relaunch/kvws-relaunch/release/.icon-ico/icon.ico
                workingDir=

Did someone make it work for windows with certificate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant