Skip to content

Commit e7df187

Browse files
authored
Merge pull request #49 from boriel-basic/features/installer
v0.0.1-beta7 Bugfixed: Tool images are not displayed on Mac. New "Run ZX Basic Studio" button. New "Refresh" button. Added icons to main buttons. Added tools path to summary area.
2 parents efd3720 + 12e34e0 commit e7df187

File tree

17 files changed

+182
-39
lines changed

17 files changed

+182
-39
lines changed

MsBox.Avalonia/MsBox.Avalonia.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<AvaloniaResource Include="Assets\*" />
2727
</ItemGroup>
2828
<ItemGroup>
29-
<PackageReference Include="Avalonia" Version="11.3.11" />
30-
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.3.0" />
29+
<PackageReference Include="Avalonia" Version="11.3.12" />
30+
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.4.1" />
3131
<PackageReference Include="DialogHost.Avalonia" Version="0.10.4" />
3232
<PackageReference Include="Markdown.Avalonia.Tight" Version="11.0.2" />
3333
</ItemGroup>

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ Have fun!
3333
- <a href="https://www.wishforge.games/?ref=svgrepo.com" target="_blank">Wishforge.games</a> in CC Attribution License
3434
- <a href="https://github.com/yamatsum/nonicons?ref=svgrepo.com" target="_blank">Yamatsum</a> in MIT License
3535
- <a href="https://github.com/32pixelsCo/zest-icons/blob/master/packages/zest-free/LICENSE.md?ref=svgrepo.com" target="_blank">Zest</a> in MIT License
36+
- <a href="https://github.com/neuicons/neu?ref=svgrepo.com" target="_blank">Neuicons</a> in MIT License via
37+
- <a href="https://dazzleui.gumroad.com/l/dazzleiconsfree?ref=svgrepo.com" target="_blank">Dazzle Ui</a> in CC Attribution License

ZXBSInstaller.Log/ServiceLayer.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,5 +1152,35 @@ private static void SetZXBSConfig()
11521152

11531153
#endregion
11541154

1155+
1156+
public static bool RunZXBasicStudio()
1157+
{
1158+
try
1159+
{
1160+
var fileName = Path.Combine(GeneralConfig.BasePath, "zxbs", "ZXBasicStudio.exe");
1161+
if (!File.Exists(fileName))
1162+
{
1163+
fileName = Path.Combine(GeneralConfig.BasePath, "zxbs", "ZXBasicStudio");
1164+
}
1165+
if (!File.Exists(fileName))
1166+
{
1167+
ServiceLayer.ShowMessage("ZX Basic Studio executable not found. Please check the installation.");
1168+
return false;
1169+
}
1170+
ProcessStartInfo psi = new ProcessStartInfo
1171+
{
1172+
FileName = fileName,
1173+
};
1174+
using Process process = new Process { StartInfo = psi };
1175+
process.Start();
1176+
return true;
1177+
}
1178+
catch (Exception ex)
1179+
{
1180+
ServiceLayer.ShowMessage("Error launching ZX Basic Studio. Please check the installation.");
1181+
return false;
1182+
}
1183+
}
1184+
11551185
}
11561186
}

ZXBSInstaller.Log/ZXBSInstaller.Log.csproj

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,4 @@
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

9-
<ItemGroup>
10-
<None Remove="InstallerResources\zxbs.png" />
11-
</ItemGroup>
12-
13-
<ItemGroup>
14-
<Content Include="InstallerResources\zxbasic.png">
15-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
16-
</Content>
17-
<Content Include="InstallerResources\zxbsinstaller.png">
18-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
19-
</Content>
20-
<Content Include="InstallerResources\zxbs.png">
21-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
22-
</Content>
23-
</ItemGroup>
24-
259
</Project>

ZXBSInstaller/Assets/install.svg

Lines changed: 7 additions & 0 deletions
Loading

ZXBSInstaller/Assets/play.svg

Lines changed: 7 additions & 0 deletions
Loading

ZXBSInstaller/Assets/refresh.svg

Lines changed: 7 additions & 0 deletions
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)