File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set PATH=C:\Program Files\7-Zip;%PATH%
66pushd %~dp0
77
88if not exist distribution\linux\. mkdir distribution\linux
9- if del /s /q distribution\windows\*
9+ del /s /q distribution\windows\* > nul 2 >& 1
1010
1111pushd CodeGen
1212echo Building Linux distribution
Original file line number Diff line number Diff line change @@ -6,13 +6,15 @@ set PATH=C:\Program Files\7-Zip;%PATH%
66pushd %~dp0
77
88if not exist distribution\windows\. mkdir distribution\windows
9- del /s /q distribution\windows\*
9+ del /s /q distribution\windows\* > nul 2 >& 1
1010
1111pushd CodeGen
1212echo Building Windows distribution
1313dotnet publish --nologo -c Release -r win-x64 --self-contained -p:PublishTrimmed=false --verbosity minimal -o ..\distribution\windows
1414popd
1515
16+ if exist ..\Documentation\CodeGen.chm copy ..\Documentation\CodeGen.chm distribution\windows > nul 2 >& 1
17+
1618pushd distribution
1719if exist codegen_windows64.zip del codegen_windows64.zip
1820pushd windows
You can’t perform that action at this time.
0 commit comments