File tree 3 files changed +17
-5
lines changed
3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 54
54
begin
55
55
try
56
56
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
+ & })
58
64
end
59
- catch (e , @Exception)
65
+ catch (ex , @Exception)
60
66
begin
61
- nop
67
+ Console.WriteLine("Failed to launch help file: " + ex.Message)
62
68
end
63
69
endtry
64
70
end
65
71
else
66
72
begin
73
+ .ifdef OS_WINDOWSNET
67
74
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
68
78
end
69
79
70
80
xreturn
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set PATH=C:\Program Files\7-Zip;%PATH%
6
6
pushd %~dp0
7
7
8
8
if not exist distribution\linux\. mkdir distribution\linux
9
- if del /s /q distribution\windows\*
9
+ del /s /q distribution\windows\* > nul 2 >& 1
10
10
11
11
pushd CodeGen
12
12
echo 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%
6
6
pushd %~dp0
7
7
8
8
if not exist distribution\windows\. mkdir distribution\windows
9
- del /s /q distribution\windows\*
9
+ del /s /q distribution\windows\* > nul 2 >& 1
10
10
11
11
pushd CodeGen
12
12
echo Building Windows distribution
13
13
dotnet publish --nologo -c Release -r win-x64 --self-contained -p:PublishTrimmed=false --verbosity minimal -o ..\distribution\windows
14
14
popd
15
15
16
+ if exist ..\Documentation\CodeGen.chm copy ..\Documentation\CodeGen.chm distribution\windows > nul 2 >& 1
17
+
16
18
pushd distribution
17
19
if exist codegen_windows64.zip del codegen_windows64.zip
18
20
pushd windows
You can’t perform that action at this time.
0 commit comments