Closed teamboyd closed 1 year ago
@jjeffery do you possibly have more details on your solution to issue #1034
I found what the issue is. In my .nuspec file, the
Dashes and dots can be used in the package ID in my fork of this project, and any invalid / unsupported package id's will be validated and rejected if they are incorrect. It's one of many bugs which have been fixed there.
Also, in the fork, it is not required to create a nupkg yourself. You can just use the new pack
command and give it a folder of files (eg. the output of your build) and it will create all the necessary packages for you.
Squirrel version(s) 2.0.1
Description squirrel --releasify throws 'File is not a PE image' exception
Steps to recreate
Expected behavior I expect squirrel to build my release files.
Actual behavior When executing the 'squirrel --releasify myapp.1.0.0.nupkg' it throws the 'File is not a PE image' exception.
Additional information Here's the call stack...
FullyQualifiedErrorId : NativeCommandError
at Squirrel.Utility.ExecutableUsesWin32Subsystem(String peImage) at System.Linq.Enumerable.WhereEnumerableIteratorb1>d.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Squirrel.Update.Program.<>cDisplayClass10_0.b7(String pkgPath)
at Squirrel.ReleasePackage.CreateReleasePackage(String outputFile, String packagesRootDir, Funcb__1>d.MoveNext()<---
1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at Squirrel.Utility.<>c__DisplayClass13_1
1.<2 releaseNotesProcessor, Action
1 contentsPostProcessHook) at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, Boolean packageAs64Bit, String frameworkVersion, Boolean generateDeltas) at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args) at Squirrel.Update.Program.Main(String[] args) ---> (Inner Exception #0) System.Exception: File is not a PE image at Squirrel.Utility.ExecutableUsesWin32Subsystem(String peImage) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract`2.MoveNext() at Squirrel.Utility.<>cDisplayClass13_1`1.<