Skip to content

Commit

Permalink
Merge pull request #575 from WildernessLabs/filemanager_refresh
Browse files Browse the repository at this point in the history
Refresh firmware store before reading on trim and package
  • Loading branch information
ctacke authored Jun 4, 2024
2 parents a85a894 + 202d80a commit ba44c8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/v2/Meadow.Cli/Commands/Current/App/AppTrimCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public AppTrimCommand(FileManager fileManager, IPackageManager packageManager, M

protected override async ValueTask ExecuteCommand()
{
await _fileManager.Refresh();

// for now we only support F7
// TODO: add switch and support for other platforms
var collection = _fileManager.Firmware["Meadow F7"];
Expand All @@ -39,8 +41,6 @@ protected override async ValueTask ExecuteCommand()
throw new CommandException(Strings.NoFirmwarePackagesFound, CommandExitCode.GeneralError);
}

await _fileManager.Refresh();

var path = AppTools.ValidateAndSanitizeAppPath(Path);

if (!File.Exists(path))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public CloudPackageCreateCommand(

protected override async ValueTask ExecuteCommand()
{
await _fileManager.Refresh();
var store = _fileManager.Firmware["Meadow F7"];
await ValidateFirmwarePackage(store);

Expand Down
2 changes: 1 addition & 1 deletion Source/v2/Meadow.Cli/Meadow.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Authors>Wilderness Labs, Inc</Authors>
<Company>Wilderness Labs, Inc</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2.0.45.0</PackageVersion>
<PackageVersion>2.0.47.0</PackageVersion>
<Platforms>AnyCPU</Platforms>
<PackageProjectUrl>http://developer.wildernesslabs.co/Meadow/Meadow.CLI/</PackageProjectUrl>
<RepositoryUrl>https://github.com/WildernessLabs/Meadow.CLI</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion Source/v2/Meadow.Cli/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ namespace Meadow.CLI;

public static class Constants
{
public const string CLI_VERSION = "2.0.45.0";
public const string CLI_VERSION = "2.0.47.0";
}

0 comments on commit ba44c8d

Please sign in to comment.