Skip to content

Commit

Permalink
Ensure pwsh scripts are easily runnable in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 6, 2023
1 parent 81a7024 commit e1bc53d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions aoc2023.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
[CmdletBinding()]
param (
[switch] $Release,
Expand Down
1 change: 1 addition & 0 deletions build-ls.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
[CmdletBinding()]
param (
)
Expand Down
1 change: 1 addition & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
[CmdletBinding()]
Param(
[Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)]
Expand Down
4 changes: 3 additions & 1 deletion build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace></RootNamespace>
<LangVersion>12.0</LangVersion>
<NoWarn>CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006</NoWarn>
<NukeRootDirectory>..</NukeRootDirectory>
<NukeScriptDirectory>..</NukeScriptDirectory>
<NukeTelemetryVersion>1</NukeTelemetryVersion>
<IsPackable>false</IsPackable>
<!-- TODO: Remove me once Nuke is updated to support .NET 8-->
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion cli.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#!/usr/bin/env pwsh
[CmdletBinding()]
param (
[switch] $NoBuild,
Expand Down
2 changes: 1 addition & 1 deletion editors/vscode/visp-fs/install-dev.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#!/usr/bin/env pwsh

function ExecSafe([scriptblock] $cmd) {
& $cmd
Expand Down
1 change: 1 addition & 0 deletions fmt.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
[CmdletBinding()]
param (
)
Expand Down
2 changes: 1 addition & 1 deletion generate-tests.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#!/usr/bin/env pwsh
[CmdletBinding()]
param (
[switch] $NoBuild,
Expand Down
2 changes: 2 additions & 0 deletions setup-extension.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env pwsh

[CmdletBinding()]
param (
[switch] $NoBuild,
Expand Down
2 changes: 2 additions & 0 deletions verify.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env pwsh

[CmdletBinding()]
param (
[Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)]
Expand Down

0 comments on commit e1bc53d

Please sign in to comment.