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

Where do i specifiy "githubArtifactName" within package.json? #1390

Closed
sidneys opened this issue Mar 21, 2017 · 10 comments
Closed

Where do i specifiy "githubArtifactName" within package.json? #1390

sidneys opened this issue Mar 21, 2017 · 10 comments

Comments

@sidneys
Copy link
Contributor

sidneys commented Mar 21, 2017

  • Version: 15.6.2
  • Target: win32

None of the locations i tried (within package.json) lets me add a custom githubArtifactName (or any properties from latest.yml, like path), my config never passes validation.

Where can i add these custom versionInfoproperties?

my package.json

...
},
 "build": {
   "win": {
     "icon": "./icons/win32/icon.ico",
     "target": [
       "nsis"
     ]
   },
   "nsis": {
     "artifactName": "${name}-setup-${version}.${ext}",
     "deleteAppDataOnUninstall": true,
     "oneClick": false,
     "runAfterFinish": false
   }
 }
...

Thanks, @develar !

@develar
Copy link
Member

develar commented Mar 21, 2017

You cannot add custom githubArtifactName. Github has weird file name rules and electron-builder computes it for you.

It seems you want to use GitHub urls as generic provider urls, right?

@sidneys
Copy link
Contributor Author

sidneys commented Mar 21, 2017

@develar

Thanks for the response! Nope, the problem is that artifactName is formatted ${name}-setup-${version}.${ext}, and is uploaded as such to GitHub, while githubArtifactName is still formatted differently (as ${name}-Setup-${version}.${ext}, note the uppercase "Setup") and does not recognize the renamed actual artifact name in the generated latest.yml (see below):

my latest.yml

version: 4.1.5
releaseDate: '2017-03-21T08:46:38.280Z'
githubArtifactName: pb-for-desktop-Setup-4.1.5.exe
path: pb-for-desktop-setup-4.1.5.exe
sha2: 8958bb0ffe95194077cc58c2e6f1a15835275a7b84ed1c4c91a13cf9989f0677

my release

pb-for-desktop v4.1.5

@develar
Copy link
Member

develar commented Mar 22, 2017

Ok. So, you want to use GitHub publisher in a standard way and this issue is not related to your publish question in other tickets.

Ok, so you are requesting feature to customise githubArtifactName. Will be implemented.

@develar
Copy link
Member

develar commented Mar 22, 2017

In the 16.2.0 case fixed.

@sidneys
Copy link
Contributor Author

sidneys commented Mar 22, 2017

@develar
You're awesome, thanks a lot. Thanks for this great project. I'll close this issue once i tested it.

@sidneys
Copy link
Contributor Author

sidneys commented Mar 23, 2017

@develar
Works like a charm. Thank you a lot.

@krystophv
Copy link

So per #1390 (comment) the ability to customize githubArtifactName is planned?

@develar
Copy link
Member

develar commented Apr 3, 2017

@krystophv Only if you will provide strong arguments why it can be useful (keep in mind — GitHub file name policy is very strict).

@krystophv
Copy link

@develar I'm trying to provide 'debug' and production builds for a project through CI servers and have them distributed through the GitHub mechanism. I'm able to distinguish the builds from one another on the CI server through the build.artifactName configuration, but when uploaded to GitHub, both builds produce the same file name and overwrite one another. Having the ability to specify the GitHub artifact name would prevent the file name collision.

@develar
Copy link
Member

develar commented Apr 3, 2017

@krystophv ... because file name contains build version, but not build number.

Well, maybe it is better to use different product name? Ook. It seems issue should be reopened.

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

3 participants