parent
3203f1b2ee
commit
46bd785a1f
13
build.fsx
13
build.fsx
|
@ -33,7 +33,6 @@ let version =
|
||||||
/// Zip a theme distributed with myWebLog
|
/// Zip a theme distributed with myWebLog
|
||||||
let zipTheme (name : string) (_ : TargetParameter) =
|
let zipTheme (name : string) (_ : TargetParameter) =
|
||||||
let path = $"src/{name}-theme"
|
let path = $"src/{name}-theme"
|
||||||
Trace.log $"Path = {path}"
|
|
||||||
!! $"{path}/**/*"
|
!! $"{path}/**/*"
|
||||||
|> Zip.filesAsSpecs path //$"src/{name}-theme"
|
|> Zip.filesAsSpecs path //$"src/{name}-theme"
|
||||||
|> Seq.filter (fun (_, name) -> not (name.EndsWith ".zip"))
|
|> Seq.filter (fun (_, name) -> not (name.EndsWith ".zip"))
|
||||||
|
@ -79,14 +78,16 @@ Target.create "PackageLinux" (packageFor "linux-x64")
|
||||||
Target.create "RepackageLinux" (fun _ ->
|
Target.create "RepackageLinux" (fun _ ->
|
||||||
let workDir = $"{releasePath}/linux"
|
let workDir = $"{releasePath}/linux"
|
||||||
let zipArchive = $"{releasePath}/myWebLog-{version}.linux-x64.zip"
|
let zipArchive = $"{releasePath}/myWebLog-{version}.linux-x64.zip"
|
||||||
|
let sh command args =
|
||||||
|
CreateProcess.fromRawCommand command args
|
||||||
|
|> CreateProcess.redirectOutput
|
||||||
|
|> Proc.run
|
||||||
|
|> ignore
|
||||||
Shell.mkdir workDir
|
Shell.mkdir workDir
|
||||||
Zip.unzip workDir zipArchive
|
Zip.unzip workDir zipArchive
|
||||||
Shell.cd workDir
|
Shell.cd workDir
|
||||||
[ "cfj"; $"../myWebLog-{version}.linux-x64.tar.bz2"; "." ]
|
sh "chmod" [ "+x"; "app/MyWebLog" ]
|
||||||
|> CreateProcess.fromRawCommand "tar"
|
sh "tar" [ "cfj"; $"../myWebLog-{version}.linux-x64.tar.bz2"; "." ]
|
||||||
|> CreateProcess.redirectOutput
|
|
||||||
|> Proc.run
|
|
||||||
|> ignore
|
|
||||||
Shell.cd "../.."
|
Shell.cd "../.."
|
||||||
Shell.rm zipArchive
|
Shell.rm zipArchive
|
||||||
Shell.rm_rf workDir
|
Shell.rm_rf workDir
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"Generator": "myWebLog 2.0-beta02",
|
"Generator": "myWebLog 2.0-beta03",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"MyWebLog.Handlers": "Information"
|
"MyWebLog.Handlers": "Information"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
myWebLog Admin
|
myWebLog Admin
|
||||||
2.0.0-beta02
|
2.0.0-beta03
|
Loading…
Reference in New Issue
Block a user