Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from DCC-EX/development
Browse files Browse the repository at this point in the history
Merge of v2.1
  • Loading branch information
dexslab authored Jul 28, 2020
2 parents 6a3398d + 61460a9 commit 6d755ab
Show file tree
Hide file tree
Showing 29 changed files with 2,334 additions and 199 deletions.
1 change: 1 addition & 0 deletions BaseStationEX
Submodule BaseStationEX added at 06aa5d
14 changes: 14 additions & 0 deletions BaseStationInstaller/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
<local:ViewLocator/>
</Application.DataTemplates>

<Application.Resources>
<Color x:Key="Primary">#FF00A3B9</Color>
<Color x:Key="Accent">#FF00353D</Color>
<Color x:Key="bgColor">#FF373737</Color>
<Color x:Key="fgColor">#FFFFFFFF</Color>
<Color x:Key="fgColorLow">#FF6C6C6C</Color>
<SolidColorBrush x:Key="ThemeAccentBrush" Color="{DynamicResource Primary}"></SolidColorBrush>
<SolidColorBrush x:Key="ThemeAccentBrush2" Color="{DynamicResource Accent}"></SolidColorBrush>
<SolidColorBrush x:Key="ThemeBackgroundBrush" Color="{DynamicResource bgColor}"></SolidColorBrush>
<SolidColorBrush x:Key="ThemeForegroundBrush" Color="{DynamicResource fgColor}"></SolidColorBrush>
<SolidColorBrush x:Key="ThemeForegroundLowBrush" Color="{DynamicResource FgColorLow}"></SolidColorBrush>

</Application.Resources>

<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseDark.xaml"/>
Expand Down
1 change: 1 addition & 0 deletions BaseStationInstaller/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Avalonia.Markup.Xaml;
using BaseStationInstaller.ViewModels;
using BaseStationInstaller.Views;
using Avalonia.ReactiveUI;


namespace BaseStationInstaller
Expand Down
Binary file added BaseStationInstaller/Assets/Audiowide-Regular.ttf
Binary file not shown.
Binary file added BaseStationInstaller/Assets/Flamenco-Regular.ttf
Binary file not shown.
Binary file removed BaseStationInstaller/Assets/avalonia-logo.ico
Binary file not shown.
Binary file added BaseStationInstaller/Assets/dcc-ex-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BaseStationInstaller/Assets/dccex-logo.ico
Binary file not shown.
34 changes: 29 additions & 5 deletions BaseStationInstaller/BaseStationInstaller.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
<RuntimeIdentifiers>win-x86;win-x64;osx-x64;linux-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<StartupObject>BaseStationInstaller.Program</StartupObject>
<AssemblyName>BaseStationInstaller</AssemblyName>
<Version>2.0.0</Version>
<Version>2.1.0</Version>
<Authors>Dex's Lab</Authors>
<Company>DCC++ Extended</Company>
<PackageProjectUrl>https://dcc-ex.github.io/</PackageProjectUrl>
<RepositoryUrl>https://github.com/DCC-EX/BaseStation-Installer</RepositoryUrl>
<PackageIcon>dcc-ex-logo.png</PackageIcon>
<ApplicationIcon>Assets\dccex-logo.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Compile Update="**\*.xaml.cs">
Expand All @@ -21,14 +23,32 @@
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.9.10" />
<PackageReference Include="Avalonia.Desktop" Version="0.9.10" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.10" />
<PackageReference Include="Avalonia" Version="0.9.11" />
<PackageReference Include="Avalonia.Desktop" Version="0.9.11" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.11" />
<PackageReference Include="Google.Protobuf" Version="3.12.3" />
<PackageReference Include="Grpc" Version="2.30.0" />
<PackageReference Include="Grpc.Core" Version="2.30.0" />
<PackageReference Include="Grpc.Core.Api" Version="2.30.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.30.0" />
<PackageReference Include="Grpc.Net.Common" Version="2.30.0" />
<PackageReference Include="Grpc.Tools" Version="2.30.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="2.0.306" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="System.IO.Ports" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<Protobuf Include="commands\board.proto" GrpcServices="Client" />
<Protobuf Include="commands\commands.proto" GrpcServices="Client" />
<Protobuf Include="commands\common.proto" GrpcServices="Client" />
<Protobuf Include="commands\compile.proto" GrpcServices="Client" />
<Protobuf Include="commands\core.proto" GrpcServices="Client" />
<Protobuf Include="commands\lib.proto" GrpcServices="Client" />
<Protobuf Include="commands\upload.proto" GrpcServices="Client" />
</ItemGroup>
<ItemGroup>
<None Update="arduino-cli-runtimes\Linux_32bit\arduino-cli">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down Expand Up @@ -57,5 +77,9 @@
<None Update="arduino-cli-runtimes/*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Assets\dcc-ex-logo.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>
14 changes: 8 additions & 6 deletions BaseStationInstaller/Models/BaseStationSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static class BaseStationSettings
Name = "BaseStationEX",
Git = "https://github.com/DCC-EX/BaseStation-EX.git",
ConfigFile = $@"DCCpp_EX/DCCppEX/Config.h",
InputFileLocation = "DCCpp_EX/DCCppEX/DCCppEX.ino",
InputFileLocation = "DCCpp_EX/DCCppEX",
Libraries = new List<Library>(),
AllowAdvanced = true,
SupportedBoards = new List<Board>()
Expand All @@ -67,7 +67,7 @@ public static class BaseStationSettings
Name = "BaseStationClassic",
DisplayName = "Base Station Classic",
ConfigFile = @"DCCpp/Config.h",
InputFileLocation = "DCCpp/DCCpp.ino",
InputFileLocation = "DCCpp",
Git = "https://github.com/DCC-EX/BaseStation-Classic.git",
Libraries = new List<Library>(),
AllowAdvanced = false,
Expand All @@ -85,11 +85,11 @@ public static class BaseStationSettings
},{
new Config
{
DisplayName = "CommandStation Test",
Name = "CommandStation",
DisplayName = "CommandStation EX",
Name = "CommandStation-DCC",
Git = "https://github.com/DCC-EX/CommandStation-DCC.git",
ConfigFile = @"src/main.cpp",
InputFileLocation = @"src/main.cpp",
ConfigFile = @"Config.h",
InputFileLocation = @"",
AllowAdvanced = true,
Libraries = new List<Library>()
{
Expand All @@ -109,6 +109,8 @@ public static class BaseStationSettings
{
new MotorShield("Arduino Motor Shield", MotorShieldType.Arduino),
new MotorShield("Pololu MC33926 Motor Shield", MotorShieldType.Pololu),
new MotorShield("FireBox MK1", MotorShieldType.FireBox_MK1),
new MotorShield("FireBox MK1S", MotorShieldType.FireBox_MK1S),
//new MotorShield("BTS7960B Motor Shield", MotorShieldType.BTS7960B),
}
}
Expand Down
4 changes: 3 additions & 1 deletion BaseStationInstaller/Models/MotorShield.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public enum MotorShieldType
{
Arduino,
Pololu,
BTS7960B
BTS7960B,
FireBox_MK1,
FireBox_MK1S
}
public class MotorShield
{
Expand Down
Loading

0 comments on commit 6d755ab

Please sign in to comment.