Skip to content

Make build.sh executable via post-action - #37

Merged
TheAngryByrd merged 1 commit into
TheAngryByrd:masterfrom
rmunn:executable-build-script
Feb 9, 2018
Merged

TheAngryByrd merged 1 commit into
TheAngryByrd:masterfrom
rmunn:executable-build-script

Conversation

@rmunn

@rmunn rmunn commented Feb 9, 2018

Copy link
Copy Markdown
Contributor

@TheAngryByrd

Copy link
Copy Markdown
Owner

🎸

@TheAngryByrd
TheAngryByrd merged commit 7e392b6 into TheAngryByrd:master Feb 9, 2018
TheAngryByrd pushed a commit that referenced this pull request Feb 9, 2018
* BUGFIX: Make build.sh executable via post-action (#37)
* MINOR: Add Release notes to git release commits (#39)
@TheAngryByrd

Copy link
Copy Markdown
Owner

@rmunn just released 0.4.1-beta002 if you want to test it out

@rmunn

rmunn commented Feb 10, 2018

Copy link
Copy Markdown
Contributor Author

Tried out 0.4.1-beta002 by downloading the NuGet package manually and then running dotnet new -i /home/rmunn/Downloads/miniscaffold.0.4.1-beta002.nupkg. (I couldn't figure out how to get dotnet new to give me prerelease NuGets; running dotnet new -i "MiniScaffold::*" just gave me 0.4.0). It opened up with an executable build.sh file. Had a different problem, which I also encountered with 0.4.0, where the FAKE package didn't get restored so build.sh failed — but I'll open a separate bug report for that one. As far as the post-install script goes, it works.

And BTW, if anyone tries to install this via dotnet new on .Net Core versions before 2.0.0, they won't get an exectuable build.sh script (because that particular post-action was introduced in .Net Core 2.0.0), but they will see the "Run 'chmod +x *.sh'" text associated with that post-action. Props to the .Net Core team for thinking through how that would work and putting forward-compatibility into their post-action system.

@TheAngryByrd

Copy link
Copy Markdown
Owner

I think if you give it the "exact" version. ``dotnet new -i MiniScaffold::0.4.1-beta002`

@TheAngryByrd

Copy link
Copy Markdown
Owner

Also I'll make a note in the readme about it! Thanks!

TheAngryByrd pushed a commit that referenced this pull request Feb 10, 2018
* BUGFIX: Make build.sh executable via post-action (#37)
* BUGFIX: FAKE not restoring on initial build. Exclude paket-files directory from template (#42)
* MINOR: Add Release notes to git release commits (#39)
TheAngryByrd pushed a commit that referenced this pull request Feb 10, 2018
* BUGFIX: Make build.sh executable via post-action (#37)
* BUGFIX: FAKE not restoring on initial build. Exclude paket-files directory from template (#42)
* MINOR: Add Release notes to git release commits (#39)
@rmunn

rmunn commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

Apparently the condition should have been "(OS != \"Windows_NT\")" (see dotnet/templating#1421 (comment)). I've opened PR #51 to fix that mistake.

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

Successfully merging this pull request may close these issues.

"dotnet new mini-scaffold" on Linux strips execute bit from build.sh

2 participants