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
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2022-08-19 05:26:05 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2022-08-19 05:26:05 +0300
commitf7d989d29fa58f08fc8f5ef41c4366dc966a6421 (patch)
tree74a15b277a91c49e19850bc35c186482353cade5
parent57f077f444f847e4ca81abe057f1782ee630effd (diff)
v3.6.1v3.6.1
- (Fix) GCode: Improve the regex for parsing layer index from comments, also fixes chitubox zip format layer parsing - (Fix) MacOS: Auto updater was not copying the files to the right location, leading to not upgrade the program. However this version still need to update manually
-rw-r--r--CHANGELOG.md5
-rw-r--r--RELEASE_NOTES.md13
-rw-r--r--Scripts/010 Editor/osf.bt14
-rw-r--r--UVtools.Core/GCode/GCodeBuilder.cs3
-rw-r--r--UVtools.Core/GCode/GCodeLayer.cs5
-rw-r--r--UVtools.Core/SystemOS/SystemAware.cs2
-rw-r--r--UVtools.Core/UVtools.Core.csproj2
-rw-r--r--UVtools.InstallerMM/UVtools.InstallerMM.wxs2
-rw-r--r--UVtools.WPF/UVtools.WPF.csproj2
9 files changed, 27 insertions, 21 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 585c824..36aa75a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog
+## 19/08/2022 - v3.6.1
+
+- (Fix) GCode: Improve the regex for parsing layer index from comments, also fixes chitubox zip format layer parsing
+- (Fix) MacOS: Auto updater was not copying the files to the right location, leading to not upgrade the program. However this version still need to update manually
+
## 17/08/2022 - v3.6.0
- **File formats:**
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 73c7297..f84e033 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,12 +1,3 @@
-- **File formats:**
- - (Add) OSF (Vlare Open File Format)
- - (Fix) CTB Encrypted: Bottom Retract Height for TSMC was constraining incorrectly with the normal total retract height
- - (Fix) CWS: Only issue `;<Slice>` command when the exposure is about to happen (#514)
-- **GCode:**
- - (Add) Command `CommandWaitSyncDelay` for movement wait sync delay instead of depending on G4 wait command
- - (Fix) Wrong parsing and set of wait times when using a wait after lift / wait before retract
-- (Improvement) Auto update: Make sure the download url exists before attempt the download, if not, instead it will prompt for manual download and update
-- (Improvement) MacOS: Remove `com.apple.quarantine` flag from the auto downloaded files
-- (Upgrade) .NET from 6.0.7 to 6.0.8
-- (Upgrade) AvaloniaUI from 0.10.17 to 0.10.18
+- (Fix) GCode: Improve the regex for parsing layer index from comments, also fixes chitubox zip format layer parsing
+- (Fix) MacOS: Auto updater was not copying the files to the right location, leading to not upgrade the program. However this version still need to update manually
diff --git a/Scripts/010 Editor/osf.bt b/Scripts/010 Editor/osf.bt
index c8b9638..1904fcc 100644
--- a/Scripts/010 Editor/osf.bt
+++ b/Scripts/010 Editor/osf.bt
@@ -105,6 +105,20 @@ struct HEADER {
ushort Reserved <fgcolor=cWhite, bgcolor=cBlack>;
ubyte ProtocolType <fgcolor=cBlack, bgcolor=cRed>; // 0
+
+ local int leftover = HeaderLength - 350001;
+ if(HeaderLength == 350013) // VLR
+ {
+ uint Unknown <fgcolor=cBlack, bgcolor=cRed>; // 350054
+ ubyte Unknown1[8] <fgcolor=cBlack, bgcolor=cRed>;
+ leftover -= 12;
+ }
+
+
+ if(leftover > 0)
+ {
+ ubyte LeftOvers[leftover] <fgcolor=cBlack, bgcolor=cRed>;
+ }
} header;
diff --git a/UVtools.Core/GCode/GCodeBuilder.cs b/UVtools.Core/GCode/GCodeBuilder.cs
index 382a60e..cb2791d 100644
--- a/UVtools.Core/GCode/GCodeBuilder.cs
+++ b/UVtools.Core/GCode/GCodeBuilder.cs
@@ -931,7 +931,8 @@ public class GCodeBuilder : BindableBase
if (line[0] == ';')
{
- match = Regex.Match(line, @"^;.*(layer\s+|layer:\s*|LAYER_START:\s*)(\d+)", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
+ // Can be dangerous!
+ match = Regex.Match(line, @"^;\W*(layer\W*|LAYER_START:\s*)(\d+)", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
if (match.Success && match.Groups.Count > 2 && uint.TryParse(match.Groups[2].Value, out var layerIndex))
{
if (layerIndex > slicerFile.LayerCount)
diff --git a/UVtools.Core/GCode/GCodeLayer.cs b/UVtools.Core/GCode/GCodeLayer.cs
index afbbcf2..400b562 100644
--- a/UVtools.Core/GCode/GCodeLayer.cs
+++ b/UVtools.Core/GCode/GCodeLayer.cs
@@ -29,11 +29,6 @@ public class GCodeLayer
private float? _retractHeight2;
private float? _retractSpeed2;
- public enum GCodeLastParsedLine : byte
- {
- LayerIndex,
- }
-
public bool IsValid => LayerIndex.HasValue;
public FileFormat SlicerFile { get; }
diff --git a/UVtools.Core/SystemOS/SystemAware.cs b/UVtools.Core/SystemOS/SystemAware.cs
index 2b89217..39f5089 100644
--- a/UVtools.Core/SystemOS/SystemAware.cs
+++ b/UVtools.Core/SystemOS/SystemAware.cs
@@ -309,7 +309,7 @@ public static class SystemAware
/// <summary>
/// Gets if is running under MacOS and under app format
/// </summary>
- public static bool IsRunningMacOSApp => OperatingSystem.IsMacOS() && AppContext.BaseDirectory.EndsWith(".app/Contents/MacOS");
+ public static bool IsRunningMacOSApp => OperatingSystem.IsMacOS() && AppContext.BaseDirectory.EndsWith(Path.Combine(".app", "Contents", $"MacOS{Path.DirectorySeparatorChar}"));
/// <summary>
/// Gets the main name of the operative system
diff --git a/UVtools.Core/UVtools.Core.csproj b/UVtools.Core/UVtools.Core.csproj
index f870d8e..11f6740 100644
--- a/UVtools.Core/UVtools.Core.csproj
+++ b/UVtools.Core/UVtools.Core.csproj
@@ -10,7 +10,7 @@
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<PackageProjectUrl>https://github.com/sn4k3/UVtools</PackageProjectUrl>
<Description>MSLA/DLP, file analysis, calibration, repair, conversion and manipulation</Description>
- <Version>3.6.0</Version>
+ <Version>3.6.1</Version>
<Copyright>Copyright © 2020 PTRTECH</Copyright>
<PackageIcon>UVtools.png</PackageIcon>
<Platforms>AnyCPU;x64</Platforms>
diff --git a/UVtools.InstallerMM/UVtools.InstallerMM.wxs b/UVtools.InstallerMM/UVtools.InstallerMM.wxs
index 7784883..8203d5c 100644
--- a/UVtools.InstallerMM/UVtools.InstallerMM.wxs
+++ b/UVtools.InstallerMM/UVtools.InstallerMM.wxs
@@ -2,7 +2,7 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define ComponentRules="OneToOne"?>
<!-- SourceDir instructs IsWiX the location of the directory that contains files for this merge module -->
- <?define SourceDir="..\publish\UVtools_win-x64_v3.6.0"?>
+ <?define SourceDir="..\publish\UVtools_win-x64_v3.6.1"?>
<Module Id="UVtools" Language="1033" Version="1.0.0.0">
<Package Id="12aaa1cf-ff06-4a02-abd5-2ac01ac4f83b" Manufacturer="PTRTECH" InstallerVersion="200" Keywords="MSLA, DLP" Description="MSLA/DLP, file analysis, repair, conversion and manipulation" InstallScope="perMachine" Platform="x64" />
<Directory Id="TARGETDIR" Name="SourceDir">
diff --git a/UVtools.WPF/UVtools.WPF.csproj b/UVtools.WPF/UVtools.WPF.csproj
index 8c2eca6..164a10f 100644
--- a/UVtools.WPF/UVtools.WPF.csproj
+++ b/UVtools.WPF/UVtools.WPF.csproj
@@ -12,7 +12,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
- <Version>3.6.0</Version>
+ <Version>3.6.1</Version>
<Platforms>AnyCPU;x64</Platforms>
<PackageIcon>UVtools.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>