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

Error: Squirrel: Could not locate executable. #2

Closed
AnderssonPeter opened this issue Jun 28, 2016 · 2 comments
Closed

Error: Squirrel: Could not locate executable. #2

AnderssonPeter opened this issue Jun 28, 2016 · 2 comments

Comments

@AnderssonPeter
Copy link

I have the following cake file:

#addin Cake.Squirrel

Task("Package")
    .Does(() =>
{
    var targetDirectory = Directory("Releases");
    var targetNuGetPackageFile = targetDirectory + File(@"Test.1.0.0.nupkg");
    var settings = new SquirrelSettings {
        SetupIcon = File("Icon.ico"),
        NoMsi = true,
        ReleaseDirectory = targetDirectory,
        LoadingGif = File("installing.gif")
    };
    Squirrel(targetNuGetPackageFile, settings);
});

RunTarget("Package");

But when I run it with .\build.ps1 "Test.cake" I get the following output:

Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing addins...
Compiling build script...

========================================
Package
========================================
Executing task: Package
An error occured when executing task 'Package'.
Error: Squirrel: Could not locate executable.

i have the following files:

|   build.ps1
|   Test.cake
|   
\---tools
    |   nuget.exe
    |   packages.config
    |   
    +---Addins
    |   +---Cake.Core
    |   |   |   Cake.Core.nupkg
    |   |   |   
    |   |   \---lib
    |   |       \---net45
    |   |               Cake.Core.dll
    |   |               Cake.Core.pdb
    |   |               Cake.Core.xml
    |   |               
    |   \---Cake.Squirrel
    |       |   Cake.Squirrel.nupkg
    |       |   
    |       \---lib
    |           \---net45
    |                   Cake.Squirrel.dll
    |                   
    \---Cake
            Autofac.dll
            Cake.Common.dll
            Cake.Common.xml
            Cake.Core.dll
            Cake.Core.xml
            Cake.exe
            Cake.NuGet.dll
            Cake.NuGet.xml
            Cake.nupkg
            Mono.CSharp.dll
            NuGet.Core.dll
            Roslyn.Compilers.CSharp.dll
            Roslyn.Compilers.dll
@agc93
Copy link

agc93 commented Jun 28, 2016

Identified on Gitter as missing the #tool declaration to bring Squirrel.exe itself in.

Adding #tool "Squirrel.Windows" is confirmed to have fixed the issues.

@phillipsj Should the README or examples perhaps be updated to mention the need to reference Squirrel.Windows?

@phillipsj
Copy link
Owner

I will get this all updated this weekend. Thanks for the feedback.

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

No branches or pull requests

3 participants