Skip to content

Commit 6130e91

Browse files
committed
(chocolateyGH-1949)(build) ensure files unpacked w/unofficial
When building the Chocolatey package without the official strong name key, it would not properly create the nuget package due to running `choco unpackself -f` without the additional `--allow-unofficial-build`. Instead it would throw an error about needing that passed. Having that additional switch is ignored on official builds. Add it to the `nugetPrepare.post.step` file as part of the arguments to ensure that the nuget package has all of same components that the officially strong named package would have.
1 parent 4bae22c commit 6130e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.build.custom/nugetPrepare.post.step

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<target name="unpack_files">
3636
<echo level="Warning" message="Unpacking Choco files." />
3737
<property name="app.choco" value="${dirs.drop.nuget}${path.separator}chocolatey${path.separator}tools${path.separator}chocolateyInstall${path.separator}choco.exe" />
38-
<property name="args.choco" value="unpackself -f" />
38+
<property name="args.choco" value="unpackself -f --allow-unofficial-build" />
3939
<exec program="${app.choco}"
4040
workingdir="${dirs.drop.nuget}${path.separator}chocolatey${path.separator}tools${path.separator}chocolateyInstall"
4141
commandline="${args.choco}" if="${platform::is-windows()}" />

0 commit comments

Comments
 (0)