Skip to content

Commit

Permalink
Fix publish issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryx93 committed Jul 15, 2023
1 parent a77a5d4 commit c85018f
Show file tree
Hide file tree
Showing 19 changed files with 70 additions and 54 deletions.
4 changes: 2 additions & 2 deletions Dll/Bass/BassDlls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;osx-x64</RuntimeIdentifiers>
</PropertyGroup>

<ItemGroup Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'==''">
<ItemGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
<Content Include="win-x64\**" >
<Link>%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand All @@ -16,7 +16,7 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)'=='linux-x64' or '$(RuntimeIdentifier)'==''">
<ItemGroup Condition="'$(RuntimeIdentifier)'=='linux-x64'">
<Content Include="linux-x64\**" >
<Link>%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
4 changes: 2 additions & 2 deletions Dll/BassEnc/BassEncDlls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;osx-x64</RuntimeIdentifiers>
</PropertyGroup>

<ItemGroup Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'==''">
<ItemGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
<Content Include="win-x64\**" >
<Link>%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand All @@ -16,7 +16,7 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)'=='linux-x64' or '$(RuntimeIdentifier)'==''">
<ItemGroup Condition="'$(RuntimeIdentifier)'=='linux-x64'">
<Content Include="linux-x64\**" >
<Link>%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
4 changes: 4 additions & 0 deletions Dll/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Project>
<PropertyGroup>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Dll/FFmpeg/FFmpegExe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;osx-x64</RuntimeIdentifiers>
</PropertyGroup>

<ItemGroup Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'==''">
<ItemGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
<Content Include="win-x64\**" >
<Link>%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
24 changes: 16 additions & 8 deletions Publish/publish-win-all
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
./publish-win Player432Hz win-x64
./publish-win Player432Hz win-x86
./publish-win Player432Hz win-x64 zip
./publish-win Player432Hz win-x86 zip
./publish-win Player432Hz win-x64 setup
./publish-win Player432Hz win-x86 setup

./publish-win Converter432Hz win-x64
./publish-win Converter432Hz win-x86
./publish-win Converter432Hz win-x64 zip
./publish-win Converter432Hz win-x86 zip
./publish-win Converter432Hz win-x64 setup
./publish-win Converter432Hz win-x86 setup

./publish-win PowerliminalsPlayer win-x64
./publish-win PowerliminalsPlayer win-x86
./publish-win PowerliminalsPlayer win-x64 zip
./publish-win PowerliminalsPlayer win-x86 zip
./publish-win PowerliminalsPlayer win-x64 setup
./publish-win PowerliminalsPlayer win-x86 setup

./publish-win YangDownloader win-x64
./publish-win YangDownloader win-x86
./publish-win YangDownloader win-x64 zip
./publish-win YangDownloader win-x86 zip
./publish-win YangDownloader win-x64 setup
./publish-win YangDownloader win-x86 setup
32 changes: 24 additions & 8 deletions Publish/publish-win-all.bat
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@

call publish-win Player432Hz win-x64
call publish-win Player432Hz win-x64 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
call publish-win Player432Hz win-x86
call publish-win Player432Hz win-x86 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
::call publish-win Player432Hz win-x64 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
::call publish-win Player432Hz win-x86 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!

call publish-win Converter432Hz win-x64
call publish-win Converter432Hz win-x64 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
call publish-win Converter432Hz win-x86 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
::call publish-win Converter432Hz win-x64 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
call publish-win Converter432Hz win-x86
::call publish-win Converter432Hz win-x86 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!

call publish-win PowerliminalsPlayer win-x64
call publish-win PowerliminalsPlayer win-x64 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
call publish-win PowerliminalsPlayer win-x86
call publish-win PowerliminalsPlayer win-x86 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
::call publish-win PowerliminalsPlayer win-x64 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
::call publish-win PowerliminalsPlayer win-x86 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!

call publish-win YangDownloader win-x64
call publish-win YangDownloader win-x64 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
call publish-win YangDownloader win-x86 zip
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
::call publish-win YangDownloader win-x64 setup
if ERRORLEVEL 1 exit /b !ERRORLEVEL!
call publish-win YangDownloader win-x86
::call publish-win YangDownloader win-x86 setup
4 changes: 2 additions & 2 deletions Src/App.Converter432Hz/Converter432Hz/Converter432Hz.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<ProjectReference Include="..\..\Apps\Apps.csproj" />
<ProjectReference Include="..\..\Avalonia\Avalonia.csproj" />
<ProjectReference Include="..\..\Services\Services.csproj" />
<ProjectReference Include="..\..\..\Dll\BassEnc\BassEncDlls.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\BassEnc\BassEncDlls.csproj" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="LazyCache" Version="2.4.0" />
Expand Down
2 changes: 1 addition & 1 deletion Src/App.Converter432Hz/Deploy/pupnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DebianRecommends = """

# Boolean (true or false) which specifies whether the application is to be installed in administrative
# mode, or per-user. Default is false. See: https://jrsoftware.org/ishelp/topic_admininstallmode.htm
SetupAdminInstall = false
SetupAdminInstall = true

# Optional command prompt title. The Windows installer will NOT add your application to the path. However,
# if your package contains a command-line utility, setting this value will ensure that a 'Command Prompt'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using HanumanInstitute.MvvmDialogs.Avalonia;
Expand Down
2 changes: 1 addition & 1 deletion Src/App.Player432Hz/Deploy/pupnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DebianRecommends = """

# Boolean (true or false) which specifies whether the application is to be installed in administrative
# mode, or per-user. Default is false. See: https://jrsoftware.org/ishelp/topic_admininstallmode.htm
SetupAdminInstall = false
SetupAdminInstall = true

# Optional command prompt title. The Windows installer will NOT add your application to the path. However,
# if your package contains a command-line utility, setting this value will ensure that a 'Command Prompt'
Expand Down
4 changes: 1 addition & 3 deletions Src/App.Player432Hz/Player432Hz/Player432Hz.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\MediaPlayerUI.NET\Avalonia.Bass\MediaPlayer.Avalonia.Bass.csproj" />
<ProjectReference Include="..\..\..\..\MediaPlayerUI.NET\Avalonia\MediaPlayer.Avalonia.csproj" />
<ProjectReference Include="..\..\BassAudio\BassAudio.csproj" />
<ProjectReference Include="..\..\Apps\Apps.csproj" />
<ProjectReference Include="..\..\Avalonia\Avalonia.csproj" />
<ProjectReference Include="..\..\Services\Services.csproj" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ReactiveUI.Fody" Version="19.4.1" />
Expand Down
2 changes: 1 addition & 1 deletion Src/App.PowerliminalsPlayer/Deploy/pupnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DebianRecommends = """

# Boolean (true or false) which specifies whether the application is to be installed in administrative
# mode, or per-user. Default is false. See: https://jrsoftware.org/ishelp/topic_admininstallmode.htm
SetupAdminInstall = false
SetupAdminInstall = true

# Optional command prompt title. The Windows installer will NOT add your application to the path. However,
# if your package contains a command-line utility, setting this value will ensure that a 'Command Prompt'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\MediaPlayerUI.NET\Avalonia.Bass\MediaPlayer.Avalonia.Bass.csproj" />
<ProjectReference Include="..\..\..\..\MediaPlayerUI.NET\Avalonia\MediaPlayer.Avalonia.csproj" />
<ProjectReference Include="..\..\Apps\Apps.csproj" />
<ProjectReference Include="..\..\Avalonia\Avalonia.csproj" />
<ProjectReference Include="..\..\Services\Services.csproj" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="LazyCache" Version="2.4.0" />
<PackageReference Include="MediaPlayer.Avalonia.Bass" Version="2.0.0" />
<PackageReference Include="ReactiveUI.Fody" Version="19.4.1" />
<PackageReference Include="Splat.DependencyInjection.SourceGenerator" Version="1.1.93">
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion Src/App.YangDownloader/Deploy/pupnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DebianRecommends = """

# Boolean (true or false) which specifies whether the application is to be installed in administrative
# mode, or per-user. Default is false. See: https://jrsoftware.org/ishelp/topic_admininstallmode.htm
SetupAdminInstall = false
SetupAdminInstall = true

# Optional command prompt title. The Windows installer will NOT add your application to the path. However,
# if your package contains a command-line utility, setting this value will ensure that a 'Command Prompt'
Expand Down
3 changes: 3 additions & 0 deletions Src/App.YangDownloader/YangDownloader.Desktop/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Avalonia;
using Avalonia.Controls;
using HanumanInstitute.Apps;

namespace HanumanInstitute.YangDownloader.Desktop;
Expand All @@ -11,6 +13,7 @@ public class Program
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicEvents, typeof(WindowBase))]
public static void Main(string[] args) => AppStarter.Start<App>(args,
() => ViewModelLocator.SettingsProvider.Value,
() => ViewModelLocator.AppPathService.UnhandledExceptionLogPath);
Expand Down
5 changes: 5 additions & 0 deletions Src/App.YangDownloader/YangDownloader/Roots.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
<!-- Can be removed if CompiledBinding and no reflection are used -->
<assembly fullname="YangDownloader.Core" preserve="All"/>
<assembly fullname="YoutubeExplode" preserve="All"/>
<assembly fullname="Avalonia.Base">
<type fullname="Avalonia.Controls.WindowBase">
<event name="Activated" />
</type>
</assembly>
</linker>
8 changes: 3 additions & 5 deletions Src/App.YangDownloader/YangDownloader/YangDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\MediaPlayerUI.NET\Avalonia.Bass\MediaPlayer.Avalonia.Bass.csproj" />
<ProjectReference Include="..\..\..\..\MediaPlayerUI.NET\Avalonia\MediaPlayer.Avalonia.csproj" />
<ProjectReference Include="..\..\BassAudio\BassAudio.csproj" />
<ProjectReference Include="..\..\Apps\Apps.csproj" />
<ProjectReference Include="..\..\Avalonia\Avalonia.csproj" />
<ProjectReference Include="..\..\Services\Services.csproj" />
<ProjectReference Include="..\..\..\Dll\BassEnc\BassEncDlls.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\FFmpeg\FFmpegExe.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\..\..\Dll\BassEnc\BassEncDlls.csproj" />
<ProjectReference Include="..\..\..\Dll\Bass\BassDlls.csproj" />
<ProjectReference Include="..\..\..\Dll\FFmpeg\FFmpegExe.csproj" />
<ProjectReference Include="..\..\Downloads\Downloads.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Src/BassAudio/BassAudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PackageReference Include="ManagedBass.Fx" Version="3.1.1" />
<PackageReference Include="ManagedBass.Mix" Version="3.1.1" />
<PackageReference Include="ManagedBass.Tags" Version="3.1.1" />
<PackageReference Include="MediaPlayer.Avalonia.Bass" Version="2.0.0" />
<PackageReference Include="ReactiveUI" Version="19.4.1" />
<PackageReference Include="ReactiveUI.Fody" Version="19.4.1" />
<PackageReference Include="Splat" Version="14.6.37" />
Expand All @@ -20,7 +21,6 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\MediaPlayerUI.NET\Avalonia.Bass\MediaPlayer.Avalonia.Bass.csproj" />
<ProjectReference Include="..\Services\Services.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
14 changes: 0 additions & 14 deletions Src/HanumanInstituteApps.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BassAudio", "BassAudio\Bass
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BassAudio.Tests", "BassAudio.Tests\BassAudio.Tests.csproj", "{0E6275FF-12BE-4B62-BD93-C2E455FDEEAD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaPlayer.Avalonia", "..\..\MediaPlayerUI.NET\Avalonia\MediaPlayer.Avalonia.csproj", "{8C4531B9-61FD-4425-A751-F2B54D14F111}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaPlayer.Avalonia.Bass", "..\..\MediaPlayerUI.NET\Avalonia.Bass\MediaPlayer.Avalonia.Bass.csproj", "{1697E531-1E21-4076-844E-6B12D572D6FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Player432Hz.Tests", "App.Player432Hz\Player432Hz.Tests\Player432Hz.Tests.csproj", "{8652B70C-58DD-42AA-A569-596B723EED65}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YangDownloader.Tests", "App.YangDownloader\YangDownloader.Tests\YangDownloader.Tests.csproj", "{3B7BA209-F325-4261-B924-D25E4C6BC2FD}"
Expand Down Expand Up @@ -145,14 +141,6 @@ Global
{0E6275FF-12BE-4B62-BD93-C2E455FDEEAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E6275FF-12BE-4B62-BD93-C2E455FDEEAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E6275FF-12BE-4B62-BD93-C2E455FDEEAD}.Release|Any CPU.Build.0 = Release|Any CPU
{8C4531B9-61FD-4425-A751-F2B54D14F111}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8C4531B9-61FD-4425-A751-F2B54D14F111}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C4531B9-61FD-4425-A751-F2B54D14F111}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8C4531B9-61FD-4425-A751-F2B54D14F111}.Release|Any CPU.Build.0 = Release|Any CPU
{1697E531-1E21-4076-844E-6B12D572D6FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1697E531-1E21-4076-844E-6B12D572D6FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1697E531-1E21-4076-844E-6B12D572D6FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1697E531-1E21-4076-844E-6B12D572D6FD}.Release|Any CPU.Build.0 = Release|Any CPU
{8652B70C-58DD-42AA-A569-596B723EED65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8652B70C-58DD-42AA-A569-596B723EED65}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8652B70C-58DD-42AA-A569-596B723EED65}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -297,8 +285,6 @@ Global
{C188E071-0108-4AFA-A924-0D41CC0B393E} = {773F8319-6427-490A-961C-51102B229014}
{660D6AB9-E0D7-4BE1-B5A3-1B1ECD1E9A6B} = {773F8319-6427-490A-961C-51102B229014}
{CD2F9633-80D2-4B5D-AC4B-187F74488E76} = {F9C7F9DA-0464-4BC9-9E97-696A4FC8D86D}
{8C4531B9-61FD-4425-A751-F2B54D14F111} = {F9C7F9DA-0464-4BC9-9E97-696A4FC8D86D}
{1697E531-1E21-4076-844E-6B12D572D6FD} = {F9C7F9DA-0464-4BC9-9E97-696A4FC8D86D}
{B9D35B98-BC89-45D1-AD30-B96C9A06E987} = {3A46E6E2-0C87-44FF-9C60-0D8422857424}
{E71151BE-68FD-44D1-96E4-DFA941AFBC42} = {3A46E6E2-0C87-44FF-9C60-0D8422857424}
{BFCB242E-980E-46EF-A144-D5415F60C9BA} = {3A46E6E2-0C87-44FF-9C60-0D8422857424}
Expand Down

0 comments on commit c85018f

Please sign in to comment.