Skip to content

Commit

Permalink
Added Win7 support, improved CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrdacor committed Jun 2, 2022
1 parent 1ecdf7b commit ff37738
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions AmbermoonTools/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ $ErrorActionPreference = 'Stop';

if ($isWindows) {
Write-Host Publish Windows executables
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonPack/AmbermoonPack.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonPack/AmbermoonPack.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonMonsterValueChanger/AmbermoonMonsterValueChanger.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonMonsterValueChanger/AmbermoonMonsterValueChanger.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonTextImport/AmbermoonTextImport.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonTextImport/AmbermoonTextImport.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonDiskExtract/AmbermoonDiskExtract.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonDiskExtract/AmbermoonDiskExtract.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonEventEditor/AmbermoonEventEditor.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonEventEditor/AmbermoonEventEditor.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonLabdataEditor/AmbermoonLabdataEditor.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonLabdataEditor/AmbermoonLabdataEditor.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonItemEditor/AmbermoonItemEditor.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonItemEditor/AmbermoonItemEditor.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/Ambermoon3DMapViewer/Ambermoon3DMapViewer.csproj" -p:PublishSingleFile=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/Ambermoon3DMapViewer/Ambermoon3DMapViewer.csproj" -p:PublishSingleFile=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonPack/AmbermoonPack.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonPack/AmbermoonPack.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonMonsterValueChanger/AmbermoonMonsterValueChanger.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonMonsterValueChanger/AmbermoonMonsterValueChanger.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonTextImport/AmbermoonTextImport.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonTextImport/AmbermoonTextImport.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonDiskExtract/AmbermoonDiskExtract.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonDiskExtract/AmbermoonDiskExtract.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonEventEditor/AmbermoonEventEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonEventEditor/AmbermoonEventEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonLabdataEditor/AmbermoonLabdataEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonLabdataEditor/AmbermoonLabdataEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonItemEditor/AmbermoonItemEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonItemEditor/AmbermoonItemEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/Ambermoon3DMapViewer/Ambermoon3DMapViewer.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x86 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/Ambermoon3DMapViewer/Ambermoon3DMapViewer.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r win-x64 --no-restore --no-self-contained --nologo
Write-Host Pack zip for Windows
mkdir dist
copy "AmbermoonTools\AmbermoonPack\bin\Any CPU\Release\net6.0\win-x64\publish\AmbermoonPack.exe" "dist\"
Expand All @@ -28,6 +28,7 @@ if ($isWindows) {
copy "AmbermoonTools\AmbermoonLabdataEditor\bin\Any CPU\Release\net6.0\win-x64\publish\AmbermoonLabdataEditor.exe" "dist\"
copy "AmbermoonTools\AmbermoonItemEditor\bin\Any CPU\Release\net6.0\win-x64\publish\AmbermoonItemEditor.exe" "dist\"
copy "AmbermoonTools\Ambermoon3DMapViewer\bin\Any CPU\Release\net6.0\win-x64\publish\Ambermoon3DMapViewer.exe" "dist\"
copy "AmbermoonTools\x64\api-ms-win-core-winrt-l1-1-0.dll" "dist\"
cd dist
7z a ..\AmbermoonTools-Windows.zip *.*
cd ..
Expand All @@ -40,20 +41,21 @@ if ($isWindows) {
copy "AmbermoonTools\AmbermoonLabdataEditor\bin\Any CPU\Release\net6.0\win-x86\publish\AmbermoonLabdataEditor.exe" "dist\"
copy "AmbermoonTools\AmbermoonItemEditor\bin\Any CPU\Release\net6.0\win-x86\publish\AmbermoonItemEditor.exe" "dist\"
copy "AmbermoonTools\Ambermoon3DMapViewer\bin\Any CPU\Release\net6.0\win-x86\publish\Ambermoon3DMapViewer.exe" "dist\"
copy "AmbermoonTools\x86\api-ms-win-core-winrt-l1-1-0.dll" "dist\"
cd dist
7z a ..\AmbermoonTools-Windows32Bit.zip *.*
cd ..
rm -r dist
} else {
Write-Host Publish Linux executable
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonPack/AmbermoonPack.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonMonsterValueChanger/AmbermoonMonsterValueChanger.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonTextImport/AmbermoonTextImport.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonDiskExtract/AmbermoonDiskExtract.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonEventEditor/AmbermoonEventEditor.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonLabdataEditor/AmbermoonLabdataEditor.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonItemEditor/AmbermoonItemEditor.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/Ambermoon3DMapViewer/Ambermoon3DMapViewer.csproj" -p:PublishSingleFile=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonPack/AmbermoonPack.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonMonsterValueChanger/AmbermoonMonsterValueChanger.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonTextImport/AmbermoonTextImport.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonDiskExtract/AmbermoonDiskExtract.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonEventEditor/AmbermoonEventEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonLabdataEditor/AmbermoonLabdataEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/AmbermoonItemEditor/AmbermoonItemEditor.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
dotnet publish -c $env:CONFIGURATION "./AmbermoonTools/Ambermoon3DMapViewer/Ambermoon3DMapViewer.csproj" -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -r linux-x64 --no-restore --no-self-contained --nologo
Write-Host Pack tar.gz for Linux
7z a AmbermoonTools-Linux.tar "./AmbermoonTools/AmbermoonPack/bin/Any CPU/ReleaseLinux/net6.0/linux-x64/publish/AmbermoonPack"
7z a AmbermoonTools-Linux.tar "./AmbermoonTools/AmbermoonMonsterValueChanger/bin/Any CPU/ReleaseLinux/net6.0/linux-x64/publish/AmbermoonMonsterValueChanger"
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit ff37738

Please sign in to comment.