forked from mattpannella/pupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes and cleanup (mattpannella#384)
* Bugfixes and Code Cleanup - Added a legacy solution and project file that targets .net7 for mattpannella#372 (will need to add this to the build system and still need to figure out how auto update will work with it) - General code clean up and consistency changes - Added a method to get all the exception messages when not in debug mode to get more information - Disabled some of the resharper warning - Removed the auto unzip logic from the archive service and added it to CoresService.Download to fix a problem with the image pack and palette download functionality - Created a temporary backup of the video.json file when applying display modes incase there's an error when writing the updated file back. This is for mattpannella#354 to see if it fixes the error that we can't reproduce. * Added NET7_0 conditions for auto updating Added ifdef statements to stop the app from auto updating itself when it's in .NET7 mode. It does display a message to let the user know there is a new version though. * include csproj file name for now * dotnet 7 build work flow --------- Co-authored-by: Matt Pannella <[email protected]>
- Loading branch information
1 parent
7a729e6
commit 1f10f77
Showing
92 changed files
with
622 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Publish Legacy | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
strategy: | ||
matrix: | ||
kind: ['macOS'] | ||
include: | ||
- kind: macOS | ||
os: macos-latest | ||
target: osx | ||
arm: true | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 9.0.100 | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
tag=$(git describe --tags --abbrev=0) | ||
release_name="App-$tag-${{ matrix.target }}" | ||
trim="True" | ||
# Build everything | ||
dotnet publish pupdate_legacy.csproj -r ${{ matrix.target }}-x64 --self-contained true -c Release -o "$release_name" --consoleloggerparameters:ErrorsOnly -p:PublishTrimmed=$trim -p:TrimMode=partial | ||
mv ${release_name}/pupdate ${release_name}/pupdate_x64 | ||
dotnet publish pupdate_legacy.csproj -r ${{ matrix.target }}-arm64 --self-contained true -c Release -o "$release_name" --consoleloggerparameters:ErrorsOnly -p:PublishTrimmed=$trim -p:TrimMode=partial | ||
mv ${release_name}/pupdate ${release_name}/pupdate_arm64 | ||
# Pack files | ||
cd $release_name | ||
lipo -create -output pupdate pupdate_arm64 pupdate_x64 | ||
rm pupdate_arm64 | ||
rm pupdate_x64 | ||
zip "../dotnet7_pupdate_mac.zip" "pupdate"; cd ..; | ||
# Delete output directory | ||
rm -r "$release_name" | ||
- name: Publish Legacy | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: "pupdate*.zip" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<PublishSingleFile>true</PublishSingleFile> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>disable</Nullable> | ||
<Version>4.2.1</Version> | ||
<Description>Keep your Analogue Pocket up to date</Description> | ||
<Copyright>2024 Matt Pannella</Copyright> | ||
<Authors>Matt Pannella</Authors> | ||
<Product>Pupdate</Product> | ||
<RepositoryUrl>https://github.com/mattpannella/pupdate</RepositoryUrl> | ||
<RootNamespace>Pannella</RootNamespace> | ||
<NoWarn>NU1605</NoWarn> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1" /> | ||
<PackageReference Include="ConsoleMenu-simple" Version="2.6.1" /> | ||
<PackageReference Include="Crc32.NET" Version="1.2.0" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
<PackageReference Include="System.IO.Compression.ZipFile" Version="4.3.0" /> | ||
<PackageReference Include="UrlCombine" Version="2.0.0" /> | ||
<PackageReference Include="Aspose.Zip" Version="24.11.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EditorConfigFiles Remove=".editorconfig" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include=".editorconfig" /> | ||
<None Update="blacklist.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Update="image_packs.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Update="pocket_extras.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Update="display_modes.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Update="ignore_instance.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="pocket\Assets\" /> | ||
<Folder Include="pocket\Cores\" /> | ||
<Folder Include="pocket\Platforms\" /> | ||
<Folder Include="pocket\Platforms\_images\" /> | ||
<Folder Include="pocket\Presets\" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:s="clr-namespace:System;assembly=mscorlib" | ||
xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" | ||
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=src_005Cpartials/@EntryIndexedValue">True</s:Boolean> | ||
</wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.31912.275 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "pupdate_legacy", "pupdate_legacy.csproj", "{88615FF5-4649-4DD0-B721-449269388A88}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{88615FF5-4649-4DD0-B721-449269388A88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{88615FF5-4649-4DD0-B721-449269388A88}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{88615FF5-4649-4DD0-B721-449269388A88}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{88615FF5-4649-4DD0-B721-449269388A88}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {E762A40A-D6F5-4D10-B9D2-9310E95944B6} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.