Skip to content

Commit c8b3008

Browse files
committed
Updated documentation code for Linux platforms.
1 parent 70f2236 commit c8b3008

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

Diff for: CodeGen/Documentation.dbl

+13-3
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,27 @@ proc
5454
begin
5555
try
5656
begin
57-
Process.Start(helpFile)
57+
Process.Start(new ProcessStartInfo()
58+
& {
59+
& FileName = "hh.exe",
60+
& Arguments = helpFile,
61+
& UseShellExecute = true,
62+
& CreateNoWindow = true
63+
& })
5864
end
59-
catch (e, @Exception)
65+
catch (ex, @Exception)
6066
begin
61-
nop
67+
Console.WriteLine("Failed to launch help file: " + ex.Message)
6268
end
6369
endtry
6470
end
6571
else
6672
begin
73+
.ifdef OS_WINDOWSNET
6774
Process.Start("https://codegen.synergex.com")
75+
.else
76+
Console.WriteLine("Documentation can't be launched directly. Go to https://codegen.synergex.com")
77+
.endc
6878
end
6979

7080
xreturn

Diff for: DotNetCore/MakeLinuxDistro.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set PATH=C:\Program Files\7-Zip;%PATH%
66
pushd %~dp0
77

88
if not exist distribution\linux\. mkdir distribution\linux
9-
if del /s /q distribution\windows\*
9+
del /s /q distribution\windows\* > nul 2>&1
1010

1111
pushd CodeGen
1212
echo Building Linux distribution

Diff for: DotNetCore/MakeWindowsDistro.bat

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ set PATH=C:\Program Files\7-Zip;%PATH%
66
pushd %~dp0
77

88
if not exist distribution\windows\. mkdir distribution\windows
9-
del /s /q distribution\windows\*
9+
del /s /q distribution\windows\* > nul 2>&1
1010

1111
pushd CodeGen
1212
echo Building Windows distribution
1313
dotnet publish --nologo -c Release -r win-x64 --self-contained -p:PublishTrimmed=false --verbosity minimal -o ..\distribution\windows
1414
popd
1515

16+
if exist ..\Documentation\CodeGen.chm copy ..\Documentation\CodeGen.chm distribution\windows > nul 2>&1
17+
1618
pushd distribution
1719
if exist codegen_windows64.zip del codegen_windows64.zip
1820
pushd windows

0 commit comments

Comments
 (0)