Skip to content

Commit

Permalink
feat: added PAK support !
Browse files Browse the repository at this point in the history
  • Loading branch information
StarNumber12046 committed Sep 23, 2023
1 parent f167396 commit f7e7d0c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DiSHLoader/DiSHLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,16 @@
<ProjectReference Include="..\DiSHCore\DiSHCore.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="manifest.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="delete.bat">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="setup.bat">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions DiSHLoader/delete.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
del /s /q %appdata%\LDevs\DiSHLoader
del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\DiSHLoader.exe"
echo "Removal done!"
21 changes: 21 additions & 0 deletions DiSHLoader/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "DiSHLoader",
"description": "DiSH Loader",
"installation": {
"adapter": "pak/adapter-batch",
"file": "setup.bat",
"needsReboot": "false"
},
"uninstallation": {
"supported": "true",
"adapter": "pak/adapter-batch",
"file": "delete.bat",
"needsReboot": "false"
},
"update": {
"supported": "true",
"adapter": "pak/adapter-batch",
"file": "setup.bat",
"needsReboot": "false"
}
}
5 changes: 5 additions & 0 deletions DiSHLoader/setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mkdir %appdata%\LDevs\DiSHLoader
mkdir %appdata%\LDevs\DiSHLoader\versions
copy * %appdata%\LDevs\DiSHLoader\
mklink "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\DiSHLoader.exe" %appdata%\LDevs\DiSHLoader\DiSHLoader.exe
echo "Setup done! You just need an env file and a version"

0 comments on commit f7e7d0c

Please sign in to comment.