Skip to content

Commit

Permalink
stardrop: init at 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiedotcafe committed Oct 23, 2024
1 parent d4d006a commit a2d55a6
Show file tree
Hide file tree
Showing 5 changed files with 882 additions and 0 deletions.
92 changes: 92 additions & 0 deletions pkgs/by-name/st/stardrop/csproj-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
diff --git a/Stardrop/Stardrop.csproj b/Stardrop/Stardrop.csproj
index 3eb4c3a..7342618 100644
--- a/Stardrop/Stardrop.csproj
+++ b/Stardrop/Stardrop.csproj
@@ -82,87 +82,4 @@
<Generator>MSBuild:Compile</Generator>
</Content>
</ItemGroup>
-
- <ItemGroup Condition="$(Configuration)=='Release' And $(RuntimeIdentifier)=='linux-x64'">
- <WSL Include="wsl" Condition="$([MSBuild]::IsOSPlatform('Windows'))" />
- <BashScript Include="$(ProjectDir)\Assets\Stardrop.sh" />
- <RenameExecutableLinux Include="$(PublishDir)\Stardrop" />
- <RenameDatabaseLinux Include="$(PublishDir)\Stardrop.pdb" />
- <ZipName Include="Stardrop-linux-x64.zip" />
- </ItemGroup>
-
- <Target Name="FolderProfile - Linux" AfterTargets="Publish" Condition="$(Configuration)=='Release' And $(RuntimeIdentifier)=='linux-x64'">
- <Delete Files="$(PublishDir)/$(ZipName)" />
-
- <Copy SourceFiles="@(RenameExecutableLinux)" DestinationFiles="@(RenameExecutableLinux-&gt;Replace('Stardrop','Internal'))" />
- <Copy SourceFiles="@(RenameDatabaseLinux)" DestinationFiles="@(RenameDatabaseLinux-&gt;Replace('Stardrop','Internal'))" />
- <Delete Files="@(RenameExecutableLinux);@(RenameDatabaseLinux)" />
-
- <Copy SourceFiles="@(BashScript)" DestinationFolder="$(PublishDir)" />
-
- <Exec Command="@(WSL) mkdir Stardrop" WorkingDirectory="$(PublishDir)" />
-
- <Move SourceFiles="$(PublishDir)/Internal;$(PublishDir)/Internal.pdb;$(PublishDir)/Stardrop.sh" DestinationFolder="$(PublishDir)/Stardrop" />
- <Exec Command="@(WSL) mv Themes Stardrop" WorkingDirectory="$(PublishDir)" />
- <Exec Command="@(WSL) mv i18n Stardrop" WorkingDirectory="$(PublishDir)" />
-
- <Exec Command="@(WSL) chmod 755 Stardrop" WorkingDirectory="$(PublishDir)" />
- <Exec Command="@(WSL) chmod +x Stardrop.sh" WorkingDirectory="$(PublishDir)/Stardrop" />
- <Exec Command="@(WSL) chmod 644 Internal" WorkingDirectory="$(PublishDir)/Stardrop" />
- <Exec Command="@(WSL) chmod 644 Internal.pdb" WorkingDirectory="$(PublishDir)/Stardrop" />
- <Exec Command="@(WSL) zip -r @(ZipName) Stardrop" WorkingDirectory="$(PublishDir)" />
-
- <RemoveDir Directories="$(PublishDir)/Stardrop" />
- </Target>
-
- <ItemGroup Condition="$(Configuration)=='Release' And $(RuntimeIdentifier)=='osx-x64'">
- <WSL Include="wsl" />
- <TempFolderPath Include="Stardrop_Temp" />
- <AppFolderPath Include="$(ProjectDir)Assets\Stardrop.app" />
- <MacOSFolderPath Include="Stardrop.app\Contents\MacOS" />
- <InfoPath Include="$(ProjectDir)\Assets\Info.plist" />
- <IconPath Include="$(ProjectDir)\Assets\Stardrop.icns" />
- <ZipName Include="Stardrop-osx-x64.zip" />
- </ItemGroup>
-
- <Target Name="FolderProfile - MacOS" AfterTargets="Publish" Condition="$(Configuration)=='Release' And $(RuntimeIdentifier)=='osx-x64'">
- <Exec Command="del @(ZipName) 2&gt;nul" WorkingDirectory="$(PublishDir)" />
-
- <Exec Command="xcopy /E /I /Y &quot;@(AppFolderPath)&quot; Stardrop.app" WorkingDirectory="$(PublishDir)" />
-
- <Exec Command="move Themes @(MacOSFolderPath)" WorkingDirectory="$(PublishDir)" />
- <Exec Command="move i18n @(MacOSFolderPath)" WorkingDirectory="$(PublishDir)" />
- <Exec Command="move *.dylib @(MacOSFolderPath)" WorkingDirectory="$(PublishDir)" />
- <Exec Command="move Stardrop @(MacOSFolderPath)" WorkingDirectory="$(PublishDir)" />
- <Exec Command="move Stardrop.pdb @(MacOSFolderPath)" WorkingDirectory="$(PublishDir)" />
-
- <Copy SourceFiles="@(InfoPath)" DestinationFolder="$(PublishDir)/Stardrop.app/Contents" />
- <Copy SourceFiles="@(IconPath)" DestinationFolder="$(PublishDir)/Stardrop.app/Contents/Resources" />
-
- <Exec Command="@(WSL) chmod +x Stardrop" WorkingDirectory="$(PublishDir)@(MacOSFolderPath)" />
-
- <Exec Command="@(WSL) zip -r @(ZipName) Stardrop.app" WorkingDirectory="$(PublishDir)" />
- <Exec Command="rmdir Stardrop.app /S /Q" WorkingDirectory="$(PublishDir)" />
- </Target>
-
-
- <ItemGroup Condition="$(Configuration)=='Release' And $(RuntimeIdentifier)=='win-x64'">
- <WSL Include="wsl" />
- <TempFolderPath Include="Stardrop_Temp" />
- <ZipName Include="Stardrop-win-x64.zip" />
- </ItemGroup>
-
- <Target Name="FolderProfile - Windows" AfterTargets="Publish" Condition="$(Configuration)=='Release' And $(RuntimeIdentifier)=='win-x64'">
- <Exec Command="del @(ZipName) 2&gt;nul" WorkingDirectory="$(PublishDir)" />
-
- <Exec Command="@(WSL) mkdir @(TempFolderPath)" WorkingDirectory="$(PublishDir)" />
-
- <Exec Command="@(WSL) mv Themes @(TempFolderPath)" WorkingDirectory="$(PublishDir)" />
- <Exec Command="@(WSL) mv i18n @(TempFolderPath)" WorkingDirectory="$(PublishDir)" />
- <Exec Command="@(WSL) mv Stardrop.exe Stardrop.pdb @(TempFolderPath)" WorkingDirectory="$(PublishDir)" />
-
- <Exec Command="ren @(TempFolderPath) Stardrop" WorkingDirectory="$(PublishDir)" />
- <Exec Command="@(WSL) zip -r @(ZipName) Stardrop" WorkingDirectory="$(PublishDir)" />
- <Exec Command="rmdir Stardrop /S /Q" WorkingDirectory="$(PublishDir)" />
- </Target>
</Project>
Loading

0 comments on commit a2d55a6

Please sign in to comment.