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

electron-builder generic repository "publishing to null" #2170

Closed
benjaml opened this issue Oct 9, 2017 · 12 comments
Closed

electron-builder generic repository "publishing to null" #2170

benjaml opened this issue Oct 9, 2017 · 12 comments

Comments

@benjaml
Copy link

benjaml commented Oct 9, 2017

  • Version: 19.33.0
  • Target: Windows 64Bits

I'm trying to add auto-update to my electron application, but I'm getting errors that are blocking me.
At the moment, I can build my application, but when I try to publish it to my repository (visualstudio.com) I'm getting this message

electron-builder 19.33.0
No native production dependencies
Packaging for win32 x64 using electron 1.7.8 to dist\win-unpacked
Building nsis installer (x64)
Publishing to null
Publishing to null

For the publish option I got

"build": {
   "appId": "com.mycompany.myapp",
   "asar": false,
   "copyright": "my company",
   "productName": "my app",
   "publish" :
   [
     {
       "provider": "generic",
       "url": "https://myaccount.visualstudio.com/myapp"
     }
   ],
   "win": { 
     "target": [
       "nsis"
     ],
     "icon": "ElectronProject/build/icon.ico"
   }
 }

If someone can help me on this, it would be very kind. Thanks

@develar
Copy link
Member

develar commented Oct 9, 2017

Hmm... please try to change publish to

     {
       "provider": "generic",
       "url": "https://myaccount.visualstudio.com/StormancerLauncher"
     },

and use electron-builder 19.35.1 (should be no difference, but anyway.)

@benjaml
Copy link
Author

benjaml commented Oct 9, 2017

It gaves me the same result

electron-builder 19.35.1
No native production dependencies
Packaging for win32 x64 using electron 1.7.8 to dist\win-unpacked
Building nsis installer (x64)
Publishing to null
Publishing to null

@develar
Copy link
Member

develar commented Oct 9, 2017

Please set env DEBUG=electron-builder and attach log of the terminal output.

@benjaml
Copy link
Author

benjaml commented Oct 9, 2017

sorry I'm quite new to electron but how do you "attach log of the terminal output." ?

@develar
Copy link
Member

develar commented Oct 9, 2017

@benjaml
Copy link
Author

benjaml commented Oct 9, 2017

I got no additional logs

PS D:\Workspace\StormancerLauncher>set env DEBUG=electron-builder
PS D:\Workspace\StormancerLauncher> npm run dist

> [email protected] dist D:\Workspace\StormancerLauncher
> build --x64 --publish always

electron-builder 19.35.1
No native production dependencies
Packaging for win32 x64 using electron 1.7.8 to dist\win-unpacked
Building nsis installer (x64)
Publishing to null
Publishing to null

PS: I don't know if it matter but I'm using visual studio code

@develar
Copy link
Member

develar commented Oct 9, 2017

Before execution, please set env: set DEBUG=electron-builder

@benjaml
Copy link
Author

benjaml commented Oct 9, 2017

ok I got

> [email protected] dist D:\Workspace\StormancerLauncher
> build --x64 --publish always

electron-builder 19.35.1
  electron-builder Effective config:
  electron-builder appId: com.stormancer.stormancerlauncher
  electron-builder asar: false
  electron-builder copyright: Stormancer
  electron-builder productName: Stormancer launcher
  electron-builder publish:
  electron-builder   provider: generic
  electron-builder   url: 'https://stormancersample.visualstudio.com/StormancerLauncher'
  electron-builder win:
  electron-builder   target:
  electron-builder     - nsis
  electron-builder   icon: ElectronProject/build/icon.ico
  electron-builder  +0ms
No native production dependencies
Packaging for win32 x64 using electron 1.7.8 to dist\win-unpacked
  electron-builder Spawning D:\Workspace\StormancerLauncher\node_modules\7zip-bin-win\x64\7za.exe x -bd C:\Users\Stage\AppData\Local\electron\Cache\electron-v1.7.8-win32-x64.z
ip -aoa -oD:\Workspace\StormancerLauncher\dist\win-unpacked +2s

7-Zip (a) 17.01 beta (x64) : Copyright (c) 1999-2017 Igor Pavlov : 2017-08-28

Scanning the drive for archives:
1 file, 53893838 bytes (52 MiB)

Extracting archive: C:\Users\Stage\AppData\Local\electron\Cache\electron-v1.7.8-win32-x64.zip
--
Path = C:\Users\Stage\AppData\Local\electron\Cache\electron-v1.7.8-win32-x64.zip
Type = zip
Physical Size = 53893838

Everything is Ok

Files: 117
Size:       138386632
Compressed: 53893838
  electron-builder 7za.exe (5660) exited with exit code 0 +1s
  electron-builder Executing C:\Users\Stage\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-1.9.0\rcedit.exe D:\Workspace\StormancerLauncher\dist\win-unpacked\Sto
rmancer launcher.exe --set-version-string FileDescription Stormancer launcher --set-version-string ProductName Stormancer launcher --set-version-string LegalCopyright Stormanc
er --set-file-version 0.0.1 --set-product-version 0.0.1.0 --set-version-string InternalName Stormancer launcher --set-version-string OriginalFilename  --set-version-string Com
panyName Stormancer --set-icon D:\Workspace\StormancerLauncher\ElectronProject\build\icon.ico +2s
wine&sign: 0s 276ms
Building nsis installer (x64)
  electron-builder Spawning D:\Workspace\StormancerLauncher\node_modules\7zip-bin-win\x64\7za.exe a -bd -mx=9 -mtc=off -mtm=off -mta=off D:\Workspace\StormancerLauncher\dist\s
tormancerlauncher-0.0.1-x64.nsis.7z . +312ms
  electron-builder cwd: D:\Workspace\StormancerLauncher\dist\win-unpacked +1ms
  electron-builder 7za.exe (13924) exited with exit code 0 +45s
nsis package, x64: 44s 939ms
  electron-builder Spawning C:\Users\Stage\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13\Bin\makensis.exe -WX -DAPP_ID=com.stormancer.stormancerlauncher -DAPP_GUID=0
0e12f4d-e42f-57f0-a748-1c8ff4ae4ca8 -DPRODUCT_NAME=Stormancer launcher -DPRODUCT_FILENAME=Stormancer launcher -DAPP_FILENAME=stormancerlauncher -DAPP_DESCRIPTION=A launcher ma
de by Stormancer -DVERSION=0.0.1 -DPROJECT_DIR=D:\Workspace\StormancerLauncher -DBUILD_RESOURCES_DIR=D:\Workspace\StormancerLauncher\build -DCOMPANY_NAME=Stormancer -DAPP_PROD
UCT_FILENAME=Stormancer launcher -DMUI_ICON=D:\Workspace\StormancerLauncher\ElectronProject\build\icon.ico -DMUI_UNICON=D:\Workspace\StormancerLauncher\ElectronProject\build\i
con.ico -DAPP_64=D:\Workspace\StormancerLauncher\dist\stormancerlauncher-0.0.1-x64.nsis.7z -DAPP_64_NAME=stormancerlauncher-0.0.1-x64.nsis.7z -DAPP_64_HASH=4696EC02F4F07E2BBFA
65860DF67967CB3D1888A7D055BDFB2F99AA7BA0CB2991457B3F525141460B06CFCB1869159A66FC33A86E45A722D46DDFEB35BDE474A -DCOMPRESSION_METHOD=7z -DONE_CLICK -DRUN_AFTER_FINISH -DSHORTCUT
_NAME=Stormancer launcher -DUNINSTALL_DISPLAY_NAME=Stormancer launcher 0.0.1 -DCOMPRESS=auto -DBUILD_UNINSTALLER -DUNINSTALLER_OUT_FILE=D:\Workspace\StormancerLauncher\dist\._
_uninstaller-nsis-stormancerlauncher.exe -XOutFile "D:\Workspace\StormancerLauncher\dist\Stormancer launcher Setup 0.0.1.exe" -XVIProductVersion 0.0.1.0 -XVIAddVersionKey /LAN
G=1033 ProductName "Stormancer launcher" -XVIAddVersionKey /LANG=1033 ProductVersion "0.0.1" -XVIAddVersionKey /LANG=1033 LegalCopyright "Stormancer" -XVIAddVersionKey /LANG=1
033 FileDescription "A launcher made by Stormancer" -XVIAddVersionKey /LANG=1033 FileVersion "0.0.1" -XVIAddVersionKey /LANG=1033 CompanyName "Stormancer" -XUnicode true -XSet
Compressor zlib - +226ms
  electron-builder cwd: D:\Workspace\StormancerLauncher\node_modules\electron-builder\templates\nsis +1ms
  electron-builder makensis.exe (968) exited with exit code 0 +676ms
  electron-builder Executing D:\Workspace\StormancerLauncher\dist\Stormancer launcher Setup 0.0.1.exe  +1ms
  electron-builder Spawning C:\Users\Stage\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13\Bin\makensis.exe -WX -DAPP_ID=com.stormancer.stormancerlauncher -DAPP_GUID=0
0e12f4d-e42f-57f0-a748-1c8ff4ae4ca8 -DPRODUCT_NAME=Stormancer launcher -DPRODUCT_FILENAME=Stormancer launcher -DAPP_FILENAME=stormancerlauncher -DAPP_DESCRIPTION=A launcher ma
de by Stormancer -DVERSION=0.0.1 -DPROJECT_DIR=D:\Workspace\StormancerLauncher -DBUILD_RESOURCES_DIR=D:\Workspace\StormancerLauncher\build -DCOMPANY_NAME=Stormancer -DAPP_PROD
UCT_FILENAME=Stormancer launcher -DMUI_ICON=D:\Workspace\StormancerLauncher\ElectronProject\build\icon.ico -DMUI_UNICON=D:\Workspace\StormancerLauncher\ElectronProject\build\i
con.ico -DAPP_64=D:\Workspace\StormancerLauncher\dist\stormancerlauncher-0.0.1-x64.nsis.7z -DAPP_64_NAME=stormancerlauncher-0.0.1-x64.nsis.7z -DAPP_64_HASH=4696EC02F4F07E2BBFA
65860DF67967CB3D1888A7D055BDFB2F99AA7BA0CB2991457B3F525141460B06CFCB1869159A66FC33A86E45A722D46DDFEB35BDE474A -DCOMPRESSION_METHOD=7z -DONE_CLICK -DRUN_AFTER_FINISH -DSHORTCUT
_NAME=Stormancer launcher -DUNINSTALL_DISPLAY_NAME=Stormancer launcher 0.0.1 -DCOMPRESS=auto -DUNINSTALLER_OUT_FILE=D:\Workspace\StormancerLauncher\dist\.__uninstaller-nsis-st
ormancerlauncher.exe -XOutFile "D:\Workspace\StormancerLauncher\dist\Stormancer launcher Setup 0.0.1.exe" -XVIProductVersion 0.0.1.0 -XVIAddVersionKey /LANG=1033 ProductName "
Stormancer launcher" -XVIAddVersionKey /LANG=1033 ProductVersion "0.0.1" -XVIAddVersionKey /LANG=1033 LegalCopyright "Stormancer" -XVIAddVersionKey /LANG=1033 FileDescription
"A launcher made by Stormancer" -XVIAddVersionKey /LANG=1033 FileVersion "0.0.1" -XVIAddVersionKey /LANG=1033 CompanyName "Stormancer" -XUnicode true -XSetCompressor zlib - +7
9ms
  electron-builder cwd: D:\Workspace\StormancerLauncher\node_modules\electron-builder\templates\nsis +1ms
  electron-builder makensis.exe (17404) exited with exit code 0 +2s
Publishing to null
Publishing to null

@develar
Copy link
Member

develar commented Oct 9, 2017

Ok, got your issue. Publishing to null need to be fixed to make clear, that we do not publish for generic. In this case you should upload generated files manually. I suggest you instead uses GitHub releases, or S3, or Spaces.

@benjaml
Copy link
Author

benjaml commented Oct 9, 2017

So I just have to push manually the latest.yml file ?

@develar
Copy link
Member

develar commented Oct 9, 2017

Yes. And generated .exe.

@benjaml
Copy link
Author

benjaml commented Oct 9, 2017

ok thx for the fast answer :)

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

No branches or pull requests

2 participants