From 46bd785a1fbdac4dd2d052942480b758f9023095 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Tue, 28 Jun 2022 08:39:43 -0400 Subject: [PATCH] Make program executable (#14) - Bump versions for next release --- build.fsx | 13 +++++++------ src/MyWebLog/appsettings.json | 2 +- src/admin-theme/version.txt | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/build.fsx b/build.fsx index 4c0eb34..3aa6501 100644 --- a/build.fsx +++ b/build.fsx @@ -33,7 +33,6 @@ let version = /// Zip a theme distributed with myWebLog let zipTheme (name : string) (_ : TargetParameter) = let path = $"src/{name}-theme" - Trace.log $"Path = {path}" !! $"{path}/**/*" |> Zip.filesAsSpecs path //$"src/{name}-theme" |> Seq.filter (fun (_, name) -> not (name.EndsWith ".zip")) @@ -79,14 +78,16 @@ Target.create "PackageLinux" (packageFor "linux-x64") Target.create "RepackageLinux" (fun _ -> let workDir = $"{releasePath}/linux" let zipArchive = $"{releasePath}/myWebLog-{version}.linux-x64.zip" + let sh command args = + CreateProcess.fromRawCommand command args + |> CreateProcess.redirectOutput + |> Proc.run + |> ignore Shell.mkdir workDir Zip.unzip workDir zipArchive Shell.cd workDir - [ "cfj"; $"../myWebLog-{version}.linux-x64.tar.bz2"; "." ] - |> CreateProcess.fromRawCommand "tar" - |> CreateProcess.redirectOutput - |> Proc.run - |> ignore + sh "chmod" [ "+x"; "app/MyWebLog" ] + sh "tar" [ "cfj"; $"../myWebLog-{version}.linux-x64.tar.bz2"; "." ] Shell.cd "../.." Shell.rm zipArchive Shell.rm_rf workDir diff --git a/src/MyWebLog/appsettings.json b/src/MyWebLog/appsettings.json index a76177b..d86b0cb 100644 --- a/src/MyWebLog/appsettings.json +++ b/src/MyWebLog/appsettings.json @@ -1,5 +1,5 @@ { - "Generator": "myWebLog 2.0-beta02", + "Generator": "myWebLog 2.0-beta03", "Logging": { "LogLevel": { "MyWebLog.Handlers": "Information" diff --git a/src/admin-theme/version.txt b/src/admin-theme/version.txt index 37ff685..b7cac14 100644 --- a/src/admin-theme/version.txt +++ b/src/admin-theme/version.txt @@ -1,2 +1,2 @@ myWebLog Admin -2.0.0-beta02 \ No newline at end of file +2.0.0-beta03 \ No newline at end of file