Skip to content

Commit

Permalink
Switch to fsproj-style FAKE setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jwosty committed Aug 4, 2024
1 parent 4f37dd6 commit 42d2792
Show file tree
Hide file tree
Showing 9 changed files with 399 additions and 139 deletions.
11 changes: 11 additions & 0 deletions Interstellar.MacOS.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Examples.macOS.WebKit", "Ex
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Interstellar.MacOS.WebKit", "src\Interstellar.MacOS.WebKit\Interstellar.MacOS.WebKit.fsproj", "{77FAE56F-23ED-4B30-B961-BBC7B492AAFE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{2B1A37B9-3FA4-4FA3-A26F-32F2B5C2CF91}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "build", "build\build.fsproj", "{684CD76F-3338-42D4-8D53-0DA6F5F03C69}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -42,5 +46,12 @@ Global
{77FAE56F-23ED-4B30-B961-BBC7B492AAFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{77FAE56F-23ED-4B30-B961-BBC7B492AAFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{77FAE56F-23ED-4B30-B961-BBC7B492AAFE}.Release|Any CPU.Build.0 = Release|Any CPU
{684CD76F-3338-42D4-8D53-0DA6F5F03C69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{684CD76F-3338-42D4-8D53-0DA6F5F03C69}.Debug|Any CPU.Build.0 = Debug|Any CPU
{684CD76F-3338-42D4-8D53-0DA6F5F03C69}.Release|Any CPU.ActiveCfg = Release|Any CPU
{684CD76F-3338-42D4-8D53-0DA6F5F03C69}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{684CD76F-3338-42D4-8D53-0DA6F5F03C69} = {2B1A37B9-3FA4-4FA3-A26F-32F2B5C2CF91}
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dotnet run --project ./build/build.fsproj -- %*
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

dotnet run --project build/build.fsproj -- "$@"
7 changes: 3 additions & 4 deletions nupkg-hack.fsx → build/NupkgHack.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#r "System.IO.Compression"
module build.NupkgHack

open System
open System.IO
open System.IO.Compression
Expand All @@ -7,8 +8,6 @@ open System.Text.RegularExpressions
open Fake.Core
open Fake.IO

Environment.CurrentDirectory <- __SOURCE_DIRECTORY__

let changeVersionConstraints text =
Regex("(?<=id=\"Interstellar.+?\"\\s+version=\")[^[\\]]*?(?=\")")
.Replace (text, MatchEvaluator(fun m -> sprintf "[%s]" m.Value))
Expand Down Expand Up @@ -42,4 +41,4 @@ let hackNupkgAtPath (path: string) =
use file = File.Open (path, FileMode.Open, FileAccess.ReadWrite, FileShare.None)
hackNupkgFromStream path file

//hackNupkgAtPath (Path.Combine ("artifacts", "Interstellar.Wpf.Chromium.nupkg"))
//hackNupkgAtPath (Path.Combine ("artifacts", "Interstellar.Wpf.Chromium.nupkg"))
Loading

0 comments on commit 42d2792

Please sign in to comment.