Compare commits

...

13 Commits
2.6.4 ... 2.6.5

Author SHA1 Message Date
Matt Nadareski
371571d13f Bump version 2023-09-26 22:15:05 -04:00
Matt Nadareski
b231f82c4c Reset debug option to false 2023-09-26 21:41:19 -04:00
Matt Nadareski
1741326253 Force information window to top 2023-09-26 21:39:41 -04:00
Matt Nadareski
1878ef5ad6 Combine build scripts 2023-09-26 21:35:43 -04:00
Matt Nadareski
ae42f5edd7 Fix options not saving on update 2023-09-26 21:27:36 -04:00
Matt Nadareski
4362ed71e0 Handle invalid characters when changing program 2023-09-26 21:09:53 -04:00
Matt Nadareski
f02904ea49 Add release publish scripts 2023-09-26 17:13:15 -04:00
Matt Nadareski
abf4eb9b7c Update AppVeyor to match scripts 2023-09-26 16:43:57 -04:00
Matt Nadareski
1f942977cc Normalize publish scripts 2023-09-26 16:15:43 -04:00
Matt Nadareski
7edadd4739 Disable subdump download in AppVeyor 2023-09-26 14:12:32 -04:00
Matt Nadareski
cb09816c63 Add .NET 7 to build scripts 2023-09-26 14:11:33 -04:00
Matt Nadareski
48f0a826ca Update redumper to build 219 2023-09-26 13:59:09 -04:00
Matt Nadareski
9c10842924 Normalize Redumper CSS output (fixes #553) 2023-09-26 11:26:56 -04:00
16 changed files with 453 additions and 114 deletions

View File

@@ -1,3 +1,18 @@
### 2.6.5 (2023-09-27)
- Normalize Redumper CSS output
- Update redumper to build 219
- Add .NET 7 to build scripts
- Disable subdump download in AppVeyor
- Normalize publish scripts
- Update AppVeyor to match scripts
- Add release publish scripts
- Handle invalid characters when changing program
- Fix options not saving on update
- Combine build scripts
- Force information window to top
- Reset debug option to false
### 2.6.4 (2023-09-25)
- Add CD Projekt ID field

View File

@@ -10,7 +10,7 @@
<Authors>Matt Nadareski;ReignStumble;Jakz</Authors>
<Copyright>Copyright (c)2019-2023</Copyright>
<RepositoryUrl>https://github.com/SabreTools/MPF</RepositoryUrl>
<Version>2.6.4</Version>
<Version>2.6.5</Version>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

View File

@@ -6,7 +6,7 @@
<Authors>Matt Nadareski;ReignStumble;Jakz</Authors>
<Copyright>Copyright (c)2019-2023</Copyright>
<RepositoryUrl>https://github.com/SabreTools/MPF</RepositoryUrl>
<Version>2.6.4</Version>
<Version>2.6.5</Version>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View File

@@ -105,7 +105,7 @@ namespace MPF.Library
this.Options = options;
// Output paths
this.OutputPath = InfoTool.NormalizeOutputPaths(outputPath);
this.OutputPath = InfoTool.NormalizeOutputPaths(outputPath, true);
// UI information
this.Drive = drive;
@@ -131,7 +131,7 @@ namespace MPF.Library
try
{
// Normalize the output path
string outputPath = InfoTool.NormalizeOutputPaths(this.OutputPath);
string outputPath = InfoTool.NormalizeOutputPaths(this.OutputPath, true);
// Replace all instances in the output directory
string outputDirectory = Path.GetDirectoryName(outputPath);
@@ -498,7 +498,7 @@ namespace MPF.Library
return Result.Failure("Error! Current configuration is not supported!");
// Fix the output paths, just in case
this.OutputPath = InfoTool.NormalizeOutputPaths(this.OutputPath);
this.OutputPath = InfoTool.NormalizeOutputPaths(this.OutputPath, true);
// Validate that the output path isn't on the dumping drive
if (this.OutputPath[0] == Drive.Letter)

View File

@@ -1682,16 +1682,20 @@ namespace MPF.Library
/// Normalize a split set of paths
/// </summary>
/// <param name="path">Path value to normalize</param>
public static string NormalizeOutputPaths(string path)
public static string NormalizeOutputPaths(string path, bool getFullPath)
{
// The easy way
try
{
// Trim quotes from the path
path = path.Trim('"');
// If we have an invalid path
if (string.IsNullOrWhiteSpace(path))
return string.Empty;
// Remove quotes from path
path = path.Replace("\"", string.Empty);
// Try getting the combined path and returning that directly
string fullPath = Path.GetFullPath(path);
string fullPath = getFullPath ? Path.GetFullPath(path) : path;
string fullDirectory = Path.GetDirectoryName(fullPath);
string fullFile = Path.GetFileName(fullPath);

View File

@@ -7,7 +7,7 @@
<Authors>Matt Nadareski;ReignStumble;Jakz</Authors>
<Copyright>Copyright (c)2019-2023</Copyright>
<RepositoryUrl>https://github.com/SabreTools/MPF</RepositoryUrl>
<Version>2.6.4</Version>
<Version>2.6.5</Version>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View File

@@ -6,7 +6,7 @@
<Authors>Matt Nadareski;ReignStumble;Jakz</Authors>
<Copyright>Copyright (c)2019-2023</Copyright>
<RepositoryUrl>https://github.com/SabreTools/MPF</RepositoryUrl>
<Version>2.6.4</Version>
<Version>2.6.5</Version>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View File

@@ -1265,7 +1265,7 @@ namespace MPF.Modules.Redumper
if (line.StartsWith("protection system type"))
{
copyrightProtectionSystemType = line.Substring("protection system type: ".Length);
if (copyrightProtectionSystemType == "none")
if (copyrightProtectionSystemType == "none" || copyrightProtectionSystemType == "<none>")
copyrightProtectionSystemType = "No";
}
else if (line.StartsWith("region management information:"))
@@ -1287,7 +1287,7 @@ namespace MPF.Modules.Redumper
if (match.Success)
{
string normalizedKey = match.Groups[2].Value.Replace(':', ' ');
if (normalizedKey == "<none>")
if (normalizedKey == "none" || normalizedKey == "<none>")
normalizedKey = "No Title Key";
else if (normalizedKey == "<error>")
normalizedKey = "Error Retrieving Title Key";

View File

@@ -63,7 +63,7 @@ namespace MPF.Test.Library
if (!string.IsNullOrWhiteSpace(expectedPath))
expectedPath = Path.GetFullPath(expectedPath);
string actualPath = InfoTool.NormalizeOutputPaths(outputPath);
string actualPath = InfoTool.NormalizeOutputPaths(outputPath, false);
Assert.Equal(expectedPath, actualPath);
}

View File

@@ -9,7 +9,7 @@
<AssemblyName>MPF.UI.Core</AssemblyName>
<Authors>Matt Nadareski;ReignStumble;Jakz</Authors>
<Copyright>Copyright (c)2019-2023</Copyright>
<Version>2.6.4</Version>
<Version>2.6.5</Version>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

View File

@@ -590,7 +590,7 @@ namespace MPF.UI.Core.ViewModels
{
if (optionsWindow?.OptionsViewModel.SavedSettings == true)
{
this.Options.SetFromExisting(optionsWindow.OptionsViewModel.Options);
this.Options = new MPF.Core.Data.Options(optionsWindow.OptionsViewModel.Options);
InitializeUIValues(removeEventHandlers: true, rescanDrives: true);
}
}
@@ -1033,8 +1033,9 @@ namespace MPF.UI.Core.ViewModels
else if (driveChanged)
{
string label = drive?.FormattedVolumeLabel ?? systemType.LongName();
string oldFilename = Path.GetFileNameWithoutExtension(this.Parent.OutputPathTextBox.Text);
string directory = Path.GetDirectoryName(this.Parent.OutputPathTextBox.Text);
string oldPath = InfoTool.NormalizeOutputPaths(this.Parent.OutputPathTextBox.Text, false);
string oldFilename = Path.GetFileNameWithoutExtension(oldPath);
string directory = Path.GetDirectoryName(oldPath);
string filename = $"{label}{extension ?? ".bin"}";
// If the previous path included the label
@@ -1051,8 +1052,9 @@ namespace MPF.UI.Core.ViewModels
// Otherwise, reset the extension of the currently set path
else
{
string filename = Path.GetFileNameWithoutExtension(this.Parent.OutputPathTextBox.Text);
string directory = Path.GetDirectoryName(this.Parent.OutputPathTextBox.Text);
string oldPath = InfoTool.NormalizeOutputPaths(this.Parent.OutputPathTextBox.Text, false);
string filename = Path.GetFileNameWithoutExtension(oldPath);
string directory = Path.GetDirectoryName(oldPath);
filename = $"{filename}{extension ?? ".bin"}";
this.Parent.OutputPathTextBox.Text = Path.Combine(directory, filename);
@@ -1089,9 +1091,7 @@ namespace MPF.UI.Core.ViewModels
// Disable change handling
DisableEventHandlers();
string trimmedPath = Env.Parameters.OutputPath?.Trim('"') ?? string.Empty;
trimmedPath = InfoTool.NormalizeOutputPaths(trimmedPath);
this.Parent.OutputPathTextBox.Text = trimmedPath;
this.Parent.OutputPathTextBox.Text = InfoTool.NormalizeOutputPaths(Env.Parameters.OutputPath, true);
MediaType? mediaType = Env.Parameters.GetMediaType();
int mediaTypeIndex = MediaTypes.FindIndex(m => m == mediaType);
@@ -1247,6 +1247,7 @@ namespace MPF.UI.Core.ViewModels
var discInformationWindow = new DiscInformationWindow(this.Options, submissionInfo)
{
Owner = this.Parent,
Topmost = true,
WindowStartupLocation = WindowStartupLocation.CenterOwner,
};
bool? result = discInformationWindow.ShowDialog();

View File

@@ -19,8 +19,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.github\ISSUE_TEMPLATE\informational.md = .github\ISSUE_TEMPLATE\informational.md
.github\ISSUE_TEMPLATE\issue-report.md = .github\ISSUE_TEMPLATE\issue-report.md
publish-nix.sh = publish-nix.sh
README.md = README.md
publish-win.bat = publish-win.bat
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MPF.Core", "MPF.Core\MPF.Core.csproj", "{70B1265D-FE49-472A-A83D-0B462152D37A}"

View File

@@ -13,7 +13,7 @@
<Authors>Matt Nadareski;ReignStumble;Jakz</Authors>
<Copyright>Copyright (c)2019-2023</Copyright>
<RepositoryUrl>https://github.com/SabreTools/MPF</RepositoryUrl>
<Version>2.6.4</Version>
<Version>2.6.5</Version>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<InternalsVisibleTo>MPF.Test</InternalsVisibleTo>

View File

@@ -1,5 +1,5 @@
# version format
version: 2.6.4-{build}
version: 2.6.5-{build}
# pull request template
pull_requests:
@@ -28,17 +28,29 @@ build_script:
- msbuild MPF\MPF.csproj -target:Publish -property:TargetFramework=net48 -property:RuntimeIdentifiers=win7-x64
- msbuild MPF.Check\MPF.Check.csproj -target:Publish -property:TargetFramework=net48 -property:RuntimeIdentifiers=win7-x64
# .NET 6.0
- dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win7-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win8-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win81-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win10-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win7-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win8-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win81-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win10-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime linux-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime osx-x64 --self-contained true -p:PublishSingleFile=true
# .NET 6.0 Debug
- dotnet publish MPF\MPF.csproj -f net6.0-windows -r win7-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj -f net6.0-windows -r win8-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj -f net6.0-windows -r win81-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj -f net6.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win7-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win8-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win81-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win10-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r linux-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r osx-x64 --self-contained true -p:PublishSingleFile=true
# .NET 7.0 Debug
- dotnet publish MPF\MPF.csproj -f net7.0-windows -r win7-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj -f net7.0-windows -r win8-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj -f net7.0-windows -r win81-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF\MPF.csproj -f net7.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win7-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win8-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win81-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win10-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r linux-x64 --self-contained true -p:PublishSingleFile=true
- dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r osx-x64 --self-contained true -p:PublishSingleFile=true
# post-build step
after_build:
@@ -46,48 +58,81 @@ after_build:
# Aaru
- ps: appveyor DownloadFile https://github.com/aaru-dps/Aaru/releases/download/v5.3.2/aaru-5.3.2_windows_x64.zip
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net48\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net7.0-windows\win7-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net7.0-windows\win8-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net7.0-windows\win81-x64\publish\Programs\Aaru *
- 7z x aaru-5.3.2_windows_x64.zip -oMPF\bin\Debug\net7.0-windows\win10-x64\publish\Programs\Aaru *
# DiscImageCreator
- ps: appveyor DownloadFile https://github.com/saramibreak/DiscImageCreator/files/11660558/DiscImageCreator_20230606.zip
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net48\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net7.0-windows\win7-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net7.0-windows\win8-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net7.0-windows\win81-x64\publish\Programs\Creator Release_ANSI\*
- 7z e DiscImageCreator_20230606.zip -oMPF\bin\Debug\net7.0-windows\win10-x64\publish\Programs\Creator Release_ANSI\*
# Redumper
- ps: appveyor DownloadFile https://github.com/superg/redumper/releases/download/build_195/redumper-2023.07.19_build195-win64.zip
- 7z e redumper-2023.07.19_build195-win64.zip -oMPF\bin\Debug\net48\publish\Programs\Redumper redumper-2023.07.19_build195-win64\bin\*
- 7z e redumper-2023.07.19_build195-win64.zip -oMPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Redumper redumper-2023.07.19_build195-win64\bin\*
- 7z e redumper-2023.07.19_build195-win64.zip -oMPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Redumper redumper-2023.07.19_build195-win64\bin\*
- 7z e redumper-2023.07.19_build195-win64.zip -oMPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Redumper redumper-2023.07.19_build195-win64\bin\*
- 7z e redumper-2023.07.19_build195-win64.zip -oMPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Redumper redumper-2023.07.19_build195-win64\bin\*
- ps: appveyor DownloadFile https://github.com/superg/redumper/releases/download/build_219/redumper-2023.09.26_build219-win64.zip
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net48\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
# Subdump
- ps: appveyor DownloadFile https://archive.org/download/subdump_fua_0x28/subdump_fua_0x28.zip
- 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net48\publish *
- mkdir MPF\bin\Debug\net48\publish\Programs\Subdump
- mv MPF\bin\Debug\net48\publish\subdump_fua_0x28.exe MPF\bin\Debug\net48\publish\Programs\Subdump\subdump.exe
- 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
- mkdir MPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Subdump
- mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Subdump\subdump.exe
- 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
- mkdir MPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Subdump
- mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Subdump\subdump.exe
- 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
- mkdir MPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Subdump
- mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Subdump\subdump.exe
- 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
- mkdir MPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Subdump
- mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Subdump\subdump.exe
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
# MPF
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net7.0-windows\win7-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net7.0-windows\win8-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net7.0-windows\win81-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
- 7z e redumper-2023.09.26_build219-win64.zip -oMPF\bin\Debug\net7.0-windows\win10-x64\publish\Programs\Redumper redumper-2023.09.26_build219-win64\bin\*
# # Subdump
# - ps: appveyor DownloadFile https://archive.org/download/subdump_fua_0x28/subdump_fua_0x28.zip
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net48\publish *
# - mkdir MPF\bin\Debug\net48\publish\Programs\Subdump
# - mv MPF\bin\Debug\net48\publish\subdump_fua_0x28.exe MPF\bin\Debug\net48\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
# - mkdir MPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win7-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
# - mkdir MPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win8-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
# - mkdir MPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win81-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net6.0-windows *
# - mkdir MPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net6.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net6.0-windows\win10-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net7.0-windows *
# - mkdir MPF\bin\Debug\net7.0-windows\win7-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net7.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net7.0-windows\win7-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net7.0-windows *
# - mkdir MPF\bin\Debug\net7.0-windows\win8-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net7.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net7.0-windows\win8-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net7.0-windows *
# - mkdir MPF\bin\Debug\net7.0-windows\win81-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net7.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net7.0-windows\win81-x64\publish\Programs\Subdump\subdump.exe
# - 7z e subdump_fua_0x28.zip -oMPF\bin\Debug\net7.0-windows *
# - mkdir MPF\bin\Debug\net7.0-windows\win10-x64\publish\Programs\Subdump
# - mv MPF\bin\Debug\net7.0-windows\subdump_fua_0x28.exe MPF\bin\Debug\net7.0-windows\win10-x64\publish\Programs\Subdump\subdump.exe
# Create MPF Debug archives
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net48\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net48.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win7-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net6.0_win7-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win8-x64\publish\
@@ -97,9 +142,19 @@ after_build:
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win10-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net6.0_win10-x64.zip *
# MPF.Check
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win7-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net7.0_win7-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win8-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net7.0_win8-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win81-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net7.0_win81-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win10-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF_net7.0_win10-x64.zip *
# Create MPF.Check Debug archives
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net48\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net48.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\win7-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net6.0_win7-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\win8-x64\publish\
@@ -113,6 +168,19 @@ after_build:
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\osx-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net6.0_osx-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win7-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net7.0_win7-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win8-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net7.0_win8-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win81-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net7.0_win81-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win10-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net7.0_win10-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\linux-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net7.0_linux-x64.zip *
- cd %APPVEYOR_BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\osx-x64\publish\
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\MPF.Check_net7.0_osx-x64.zip *
# success/failure tracking
on_success:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
@@ -125,6 +193,7 @@ on_failure:
artifacts:
- path: MPF_net48.zip
name: MPF (.NET Framework 4.8)
- path: MPF_net6.0_win7-x64.zip
name: MPF (.NET 6.0, Windows 7 x64)
- path: MPF_net6.0_win8-x64.zip
@@ -134,8 +203,18 @@ artifacts:
- path: MPF_net6.0_win10-x64.zip
name: MPF (.NET 6.0, Windows 10 x64)
- path: MPF_net7.0_win7-x64.zip
name: MPF (.NET 7.0, Windows 7 x64)
- path: MPF_net7.0_win8-x64.zip
name: MPF (.NET 7.0, Windows 8 x64)
- path: MPF_net7.0_win81-x64.zip
name: MPF (.NET 7.0, Windows 8.1 x64)
- path: MPF_net7.0_win10-x64.zip
name: MPF (.NET 7.0, Windows 10 x64)
- path: MPF.Check_net48.zip
name: MPF Check (.NET Framework 4.8)
- path: MPF.Check_net6.0_win7-x64.zip
name: MPF.Check (.NET 6.0, Windows 7 x64)
- path: MPF.Check_net6.0_win8-x64.zip
@@ -148,3 +227,16 @@ artifacts:
name: MPF.Check (.NET 6.0, Linux x64)
- path: MPF.Check_net6.0_osx-x64.zip
name: MPF.Check (.NET 6.0, OSX x64)
- path: MPF.Check_net7.0_win7-x64.zip
name: MPF.Check (.NET 7.0, Windows 7 x64)
- path: MPF.Check_net7.0_win8-x64.zip
name: MPF.Check (.NET 7.0, Windows 8 x64)
- path: MPF.Check_net7.0_win81-x64.zip
name: MPF.Check (.NET 7.0, Windows 8.1 x64)
- path: MPF.Check_net7.0_win10-x64.zip
name: MPF.Check (.NET 7.0, Windows 10 x64)
- path: MPF.Check_net7.0_linux-x64.zip
name: MPF.Check (.NET 7.0, Linux x64)
- path: MPF.Check_net7.0_osx-x64.zip
name: MPF.Check (.NET 7.0, OSX x64)

View File

@@ -1,7 +1,7 @@
#! /bin/bash
# This batch file assumes the following:
# - .NET 6.0 (or newer) SDK is installed and in PATH
# - .NET 7.0 (or newer) SDK is installed and in PATH
# - zip is installed and in PATH
# - The relevant commandline programs are already downloaded
# and put into their respective folders
@@ -19,39 +19,146 @@ BUILD_FOLDER=$PWD
echo "Restoring Nuget packages"
dotnet restore
# .NET 6.0
echo "Building .NET 6.0 releases"
#dotnet publish MPF/MPF.csproj --framework net6.0-windows --runtime win7-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj --framework net6.0-windows --runtime win8-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj --framework net6.0-windows --runtime win81-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj --framework net6.0-windows --runtime win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj --framework net6.0 --runtime win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj --framework net6.0 --runtime win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj --framework net6.0 --runtime win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj --framework net6.0 --runtime win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj --framework net6.0 --runtime linux-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj --framework net6.0 --runtime osx-x64 --self-contained true -p:PublishSingleFile=true
# .NET 6.0 Debug
echo "Building .NET 6.0 debug"
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win7-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win8-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win81-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r linux-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r osx-x64 --self-contained true -p:PublishSingleFile=true
# Create MPF archives
# .NET 6.0 Release
echo "Building .NET 6.0 release"
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
#dotnet publish MPF/MPF.csproj -f net6.0-windows -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net6.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
# .NET 7.0 Debug
echo "Building .NET 7.0 debug"
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win7-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win8-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win81-x64 --self-contained true -p:PublishSingleFile=true
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r linux-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r osx-x64 --self-contained true -p:PublishSingleFile=true
# .NET 7.0 Release
echo "Building .NET 7.0 release"
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
#dotnet publish MPF/MPF.csproj -f net7.0-windows -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
dotnet publish MPF.Check/MPF.Check.csproj -f net7.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true
# Create MPF Debug archives
#cd $BUILD_FOLDER/MPF/bin/Debug/net6.0-windows/win7-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win7-x64.zip .
#zip -r $BUILD_FOLDER/MPF-dbg_net6.0_win7-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net6.0-windows/win8-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win8-x64.zip .
#zip -r $BUILD_FOLDER/MPF-dbg_net6.0_win8-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net6.0-windows/win81-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win81-x64.zip .
#zip -r $BUILD_FOLDER/MPF-dbg_net6.0_win81-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net6.0-windows/win10-x64/publish/
#zip -r $BUILD_FOLDER/MPF-dbg_net6.0_win10-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net7.0-windows/win7-x64/publish/
#zip -r $BUILD_FOLDER/MPF-dbg_net7.0_win7-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net7.0-windows/win8-x64/publish/
#zip -r $BUILD_FOLDER/MPF-dbg_net7.0_win8-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net7.0-windows/win81-x64/publish/
#zip -r $BUILD_FOLDER/MPF-dbg_net7.0_win81-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Debug/net7.0-windows/win10-x64/publish/
#zip -r $BUILD_FOLDER/MPF-dbg_net7.0_win10-x64.zip .
# Create MPF Release archives
#cd $BUILD_FOLDER/MPF/bin/Release/net6.0-windows/win7-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win7-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Release/net6.0-windows/win8-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win8-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Release/net6.0-windows/win81-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win81-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Release/net6.0-windows/win10-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net6.0_win10-x64.zip .
# Create MPF.Check archives
#cd $BUILD_FOLDER/MPF/bin/Release/net7.0-windows/win7-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net7.0_win7-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Release/net7.0-windows/win8-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net7.0_win8-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Release/net7.0-windows/win81-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net7.0_win81-x64.zip .
#cd $BUILD_FOLDER/MPF/bin/Release/net7.0-windows/win10-x64/publish/
#zip -r $BUILD_FOLDER/MPF_net7.0_win10-x64.zip .
# Create MPF.Check Debug archives
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net6.0/win7-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win7-x64.zip .
zip -r $BUILD_FOLDER/MPF.Check-dbg_net6.0_win7-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net6.0/win8-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win8-x64.zip .
zip -r $BUILD_FOLDER/MPF.Check-dbg_net6.0_win8-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net6.0/win81-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win81-x64.zip .
zip -r $BUILD_FOLDER/MPF.Check-dbg_net6.0_win81-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net6.0/win10-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win10-x64.zip .
zip -r $BUILD_FOLDER/MPF.Check-dbg_net6.0_win10-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net6.0/linux-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_linux-x64.zip .
zip -r $BUILD_FOLDER/MPF.Check-dbg_net6.0_linux-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net6.0/osx-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_osx-x64.zip .
zip -r $BUILD_FOLDER/MPF.Check-dbg_net6.0_osx-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net7.0/win7-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check-dbg_net7.0_win7-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net7.0/win8-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check-dbg_net7.0_win8-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net7.0/win81-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check-dbg_net7.0_win81-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net7.0/win10-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check-dbg_net7.0_win10-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net7.0/linux-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check-dbg_net7.0_linux-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Debug/net7.0/osx-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check-dbg_net7.0_osx-x64.zip .
# Create MPF.Check Release archives
cd $BUILD_FOLDER/MPF.Check/bin/Release/net6.0/win7-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win7-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net6.0/win8-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win8-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net6.0/win81-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win81-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net6.0/win10-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_win10-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net6.0/linux-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_linux-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net6.0/osx-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net6.0_osx-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net7.0/win7-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net7.0_win7-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net7.0/win8-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net7.0_win8-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net7.0/win81-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net7.0_win81-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net7.0/win10-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net7.0_win10-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net7.0/linux-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net7.0_linux-x64.zip .
cd $BUILD_FOLDER/MPF.Check/bin/Release/net7.0/osx-x64/publish/
zip -r $BUILD_FOLDER/MPF.Check_net7.0_osx-x64.zip .

View File

@@ -2,7 +2,7 @@
REM This batch file assumes the following:
REM - .NET Framework 4.8 SDK is installed and in PATH
REM - .NET 6.0 (or newer) SDK is installed and in PATH
REM - .NET 7.0 (or newer) SDK is installed and in PATH
REM - 7-zip commandline (7z.exe) is installed and in PATH
REM - The relevant commandline programs are already downloaded
REM and put into their respective folders
@@ -17,48 +17,168 @@ REM Restore Nuget packages for all builds
echo Restoring Nuget packages
dotnet restore
REM .NET Framework 4.8
echo Building .NET Framework 4.8 releases
REM .NET Framework 4.8 Debug
echo Building .NET Framework 4.8 debug
msbuild MPF\MPF.csproj -target:Publish -property:TargetFramework=net48 -property:RuntimeIdentifiers=win7-x64
msbuild MPF.Check\MPF.Check.csproj -target:Publish -property:TargetFramework=net48 -property:RuntimeIdentifiers=win7-x64
REM .NET 6.0
echo Building .NET 6.0 releases
dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj --framework net6.0-windows --runtime win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime linux-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj --framework net6.0 --runtime osx-x64 --self-contained true -p:PublishSingleFile=true
REM .NET Framework 4.8 Release
echo Building .NET Framework 4.8 release
msbuild MPF\MPF.csproj -target:Publish -property:TargetFramework=net48 -property:Configuration=Release -property:RuntimeIdentifiers=win7-x64
msbuild MPF.Check\MPF.Check.csproj -target:Publish -property:TargetFramework=net48 -property:Configuration=Release -property:RuntimeIdentifiers=win7-x64
REM Create MPF archives
REM .NET 6.0 Debug
echo Building .NET 6.0 debug
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r linux-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r osx-x64 --self-contained true -p:PublishSingleFile=true
REM .NET 6.0 Release
echo Building .NET 6.0 release
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net6.0-windows -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net6.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true
REM .NET 7.0 Debug
echo Building .NET 7.0 debug
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win7-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win8-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win81-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win10-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r linux-x64 --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r osx-x64 --self-contained true -p:PublishSingleFile=true
REM .NET 7.0 Release
echo Building .NET 7.0 release
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF\MPF.csproj -f net7.0-windows -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win7-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win8-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win81-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r win10-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true
dotnet publish MPF.Check\MPF.Check.csproj -f net7.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true
REM Create MPF Debug archives
cd %BUILD_FOLDER%\MPF\bin\Debug\net48\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net48.zip *
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net48.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win7-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net6.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win8-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net6.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win81-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net6.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net6.0-windows\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net6.0_win10-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net7.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net7.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net7.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Debug\net7.0-windows\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF-dbg_net7.0_win10-x64.zip *
REM Create MPF Release archives
cd %BUILD_FOLDER%\MPF\bin\Release\net48\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net48.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net6.0-windows\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net6.0-windows\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net6.0-windows\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net6.0-windows\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net6.0_win10-x64.zip *
REM Create MPF.Check archives
cd %BUILD_FOLDER%\MPF\bin\Release\net7.0-windows\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net7.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net7.0-windows\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net7.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net7.0-windows\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net7.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF\bin\Release\net7.0-windows\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF_net7.0_win10-x64.zip *
REM Create MPF.Check Debug archives
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net48\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net48.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net48.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win7-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net6.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win8-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net6.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win81-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net6.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win10-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net6.0_win10-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\linux-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_linux-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net6.0_linux-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net6.0\osx-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_osx-x64.zip *
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net6.0_osx-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net7.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net7.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net7.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net7.0_win10-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\linux-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net7.0_linux-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Debug\net7.0\osx-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check-dbg_net7.0_osx-x64.zip *
REM Create MPF.Check Release archives
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net48\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net48.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net6.0\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net6.0\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net6.0\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net6.0\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_win10-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net6.0\linux-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_linux-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net6.0\osx-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net6.0_osx-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net7.0\win7-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net7.0_win7-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net7.0\win8-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net7.0_win8-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net7.0\win81-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net7.0_win81-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net7.0\win10-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net7.0_win10-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net7.0\linux-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net7.0_linux-x64.zip *
cd %BUILD_FOLDER%\MPF.Check\bin\Release\net7.0\osx-x64\publish\
7z a -tzip %BUILD_FOLDER%\MPF.Check_net7.0_osx-x64.zip *