-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Windows target ignores ${arch} variable in artifact name? #1493
Comments
Note: I was able to work around this using an environment variable and |
Please see #1389 (comment) |
Doesn't matter. "Nsis installer contains both archs." |
Ah, thanks for the pointer. Follow-up question--so the |
@develar, still confused here -- I confirmed that the I also used 7-Zip to extract the NSIS (I used the workaround I mentioned above to solve the problem with producing the artifacts, but I still have a problem with auto-update, because the |
You need to build both archs — |
Oh okay. That's going to make my installer like 50MB bigger than it needs to be, is it ever going to be possible to do separate installers? |
Well. If will be request. Maybe web installer will suit your needs (#1207)? |
That looks promising, I will try it out! Thanks |
I am configuring my Target to generate the 2 x64 and ia32 versions, but the installer only generates one and does not match the version in the final file. "win": {
"icon": "artifacts/distribution/256x256.png",
"publisherName": "Temainfo Software, LTDA",
"artifactName": "${productName} Installer-${arch}-${version}.${ext}",
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
], |
I prefer to have one installer per arch to provide smaller files. My current workaround is to have two different build commands in my
|
build --x64 --win --publish always
(so it's using the default NSIS target)I've noticed that when building my windows target, the name is always of the form
MyApplication-1.0.0.exe
, even though I explicitly specified anartifactName
like this:I saw the comment here, where is says "If no
arch
, macro will be removed from your pattern with leading space, - and _". I haven't been able to figure out in which circumstances there is or isn't anarch
, though. I'm assuming that the generated.exe
works on bothia32
andx64
?If so, this is all well and good, but I really do need to product artifacts with different names like
MyApplication-1.0.0-ia32.exe
andMyApplication-1.0.0-x64.exe
, because I need to include special architecture-specific binary resources viaextraResources
, like this:Is it just not possible to create Windows installer
.exe
files with the${arch}
variable in them?(I realize that I could just rename my installers after building, but I would like to be able to directly publish them using the
--publish
flag)The text was updated successfully, but these errors were encountered: