Score
0
Watch 22 Star 84 Fork 34

ZKEASOFT / ZKEACMSC#GPL-3.0

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
可视化设计在线编辑内容管理系统 - ZKEACMS for .Net Core (.Net Core CMS) spread retract

http://www.zkea.net/zkeacms/zkeacmscore

  • C# 31.3%
  • JavaScript 22.9%
  • CSS 20.1%
  • TSQL 12.5%
  • HTML 11.7%
  • Other 1.5%
Clone or download
Release.ps1 1.39 KB
Copy Edit Web IDE Raw Blame History
ZKEASOFT authored 2020-03-31 18:46 . Update Release
Add-Type -assembly "system.io.compression.filesystem"
$source = "Release"
$destination = "ZKEACMS.zip"
Write-Host "Starting release" $destination
Write-Host "This may take a few minutes, please wait..."
if(Test-Path $source){
Remove-Item -Path $source -Force -Recurse
}
if(Test-path $destination) {
Remove-item -Path $destination -Force -Recurse
}
Invoke-Expression("dotnet restore")
Set-Location src/ZKEACMS.WebHost
Invoke-Expression("publish-zkeacms")
Set-Location ../../
Write-Host "Copy files..."
New-Item -Path "." -Name "Release" -ItemType "directory" -Force
Move-Item -Path "src/ZKEACMS.WebHost/bin/Release/PublishOutput" -Destination "Release/Application"
New-Item -Path "Release/Application" -Name "App_Data" -ItemType "directory"
Invoke-Expression("sqlite-exec -d Release/Application/App_Data/Database.sqlite -f DataBase/SQLite/ZKEACMS.sqlite.sql")
Copy-Item -Path "DataBase/SQLite/appsettings.json" -Destination "Release/Application/appsettings.json" -Force
$dbSource = 'DataBase'
$dbDestination = 'Release/Database'
$exclude = @('*.mdf','*.ldf','*.cmd','*.exe','*.dll','*.sh','*.json')
$length =(Get-Item -Path ".\" -Verbose).FullName.Length + $dbSource.Length + 1
Get-ChildItem $dbSource -Recurse -Exclude $exclude | Copy-Item -Destination {Join-Path $dbDestination $_.FullName.Substring($length)}
Write-Host "Archive to" $destination
[io.compression.zipfile]::CreateFromDirectory($Source, $destination)

Comment ( 0 )

Sign in for post a comment

C#
1
https://gitee.com/seriawei/ZKEACMS.Core.git
git@gitee.com:seriawei/ZKEACMS.Core.git
seriawei
ZKEACMS.Core
ZKEACMS
master

Help Search