Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-05-24 01:19:58 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-05-24 01:19:58 +0300
commitff4e0dfe28572b151b4831f905110eeeaf57fb62 (patch)
tree1b9c363009c3ab0c9dafbcc5f03eb038d0c413f9 /build
parentad92a0aa5cef5a9be46e2ba20ac5482fc9030015 (diff)
v2.13.0v2.13.0
- (Add) Tool - Light bleed compensation: Compensate the over-curing and light bleed from clear resins by dimming the sequential pixels - (Add) Infill: Honeycomb infill type - (Upgrade) MessageBox from 1.2.0 to 1.3.1 to fix the small size messages
Diffstat (limited to 'build')
-rw-r--r--build/CreateRelease.WPF.ps126
1 files changed, 21 insertions, 5 deletions
diff --git a/build/CreateRelease.WPF.ps1 b/build/CreateRelease.WPF.ps1
index f15382f..9521bea 100644
--- a/build/CreateRelease.WPF.ps1
+++ b/build/CreateRelease.WPF.ps1
@@ -33,8 +33,8 @@ Set-Location $PSScriptRoot\..
### Configuration ###
####################################
$enableMSI = $true
-#$buildOnly = $null
-#$buildOnly = "win-x64"
+#$buildOnly = 'linux-x64'
+#$buildOnly = 'win-x64'
# Profilling
$stopWatch = New-Object -TypeName System.Diagnostics.Stopwatch
$deployStopWatch = New-Object -TypeName System.Diagnostics.Stopwatch
@@ -51,6 +51,11 @@ $objFolder = "$project\obj\$buildWith\$netFolder"
$publishFolder = "publish"
$platformsFolder = "UVtools.Platforms"
+# Not supported yet! No fuse on WSL
+$appImageFile = 'appimagetool-x86_64.AppImage'
+$appImageFilePath = "$platformsFolder/AppImage/$appImageFile"
+$appImageUrl = "https://github.com/AppImage/AppImageKit/releases/download/continuous/$appImageFile"
+
$macIcns = "UVtools.CAD/UVtools.icns"
#$version = (Get-Command "$releaseFolder\UVtools.dll").FileVersionInfo.ProductVersion
@@ -120,6 +125,11 @@ $runtimes =
}
}
+
+# https://github.com/AppImage/AppImageKit/wiki/Bundling-.NET-Core-apps
+#Invoke-WebRequest -Uri $appImageUrl -OutFile $appImageFilePath
+#wsl chmod a+x $appImageFilePath
+
foreach ($obj in $runtimes.GetEnumerator()) {
if(![string]::IsNullOrWhiteSpace($buildOnly) -and !$buildOnly.Equals($obj.Name)) {continue}
# Configuration
@@ -154,9 +164,13 @@ Building: $runtime"
Copy-Item "$platformsFolder\$runtime\$includeObj" -Destination "$publishFolder\$runtime" -Recurse -ErrorAction Ignore
}
- Write-Output "Compressing $runtime to: $targetZip"
- Write-Output $targetZip "$publishFolder/$runtime"
-
+ #if($runtime.Equals('linux-x64')){
+ # $appDirDest = "$publishFolder/AppImage.$runtime/AppDir"
+ # Copy-Item "$platformsFolder/AppImage/AppDir" $appDirDest -Force -Recurse
+ # wsl chmod 755 "$appDirDest/AppRun"
+ # wsl cp -a "$publishFolder/$runtime/." "$appDirDest/usr/bin"
+ # wsl $appImageFilePath $appDirDest
+ #}
if($runtime.Equals('osx-x64')){
$macAppFolder = "${software}.app"
$macPublishFolder = "$publishFolder/${macAppFolder}"
@@ -179,6 +193,8 @@ Building: $runtime"
}
else {
+ Write-Output "Compressing $runtime to: $targetZip"
+ Write-Output $targetZip "$publishFolder/$runtime"
wsl cd "$publishFolder/$runtime" `&`& pwd `&`& zip -r "../../$targetZip" .
}