Skip to content

Commit

Permalink
Updated documentation code for Linux platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveIves committed Aug 15, 2024
1 parent 70f2236 commit c8b3008
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
16 changes: 13 additions & 3 deletions CodeGen/Documentation.dbl
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,27 @@ proc
begin
try
begin
Process.Start(helpFile)
Process.Start(new ProcessStartInfo()
& {
& FileName = "hh.exe",
& Arguments = helpFile,
& UseShellExecute = true,
& CreateNoWindow = true
& })
end
catch (e, @Exception)
catch (ex, @Exception)
begin
nop
Console.WriteLine("Failed to launch help file: " + ex.Message)
end
endtry
end
else
begin
.ifdef OS_WINDOWSNET
Process.Start("https://codegen.synergex.com")
.else
Console.WriteLine("Documentation can't be launched directly. Go to https://codegen.synergex.com")
.endc
end

xreturn
Expand Down
2 changes: 1 addition & 1 deletion DotNetCore/MakeLinuxDistro.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set PATH=C:\Program Files\7-Zip;%PATH%
pushd %~dp0

if not exist distribution\linux\. mkdir distribution\linux
if del /s /q distribution\windows\*
del /s /q distribution\windows\* > nul 2>&1

pushd CodeGen
echo Building Linux distribution
Expand Down
4 changes: 3 additions & 1 deletion DotNetCore/MakeWindowsDistro.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ set PATH=C:\Program Files\7-Zip;%PATH%
pushd %~dp0

if not exist distribution\windows\. mkdir distribution\windows
del /s /q distribution\windows\*
del /s /q distribution\windows\* > nul 2>&1

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

if exist ..\Documentation\CodeGen.chm copy ..\Documentation\CodeGen.chm distribution\windows > nul 2>&1

pushd distribution
if exist codegen_windows64.zip del codegen_windows64.zip
pushd windows
Expand Down

0 comments on commit c8b3008

Please sign in to comment.