Skip to content

Commit

Permalink
Updated build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcus92 committed Aug 14, 2019
1 parent 5fc3cea commit 3671594
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 27 deletions.
16 changes: 14 additions & 2 deletions JavaDecompiler/JavaDecompiler.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)'=='x64'">
<Platform>x64</Platform>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)'=='x86'">
<Platform>x86</Platform>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SharpZipLib" Version="1.1.0" />
<PackageReference Include="SharpZipLib" Version="1.2.0" />
</ItemGroup>

</Project>
32 changes: 21 additions & 11 deletions MinecraftTabPatcher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,34 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29020.237
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinecraftTabPatcher", "MinecraftTabPatcher\MinecraftTabPatcher.csproj", "{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MinecraftTabPatcher", "MinecraftTabPatcher\MinecraftTabPatcher.csproj", "{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JavaDecompiler", "JavaDecompiler\JavaDecompiler.csproj", "{5D26679D-D5C0-406E-B911-769BAAD73FD1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Release|Any CPU.Build.0 = Release|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Release|Any CPU.Build.0 = Release|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Debug|x64.ActiveCfg = Debug|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Debug|x64.Build.0 = Debug|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Debug|x86.ActiveCfg = Debug|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Debug|x86.Build.0 = Debug|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Release|x64.ActiveCfg = Release|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Release|x64.Build.0 = Release|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Release|x86.ActiveCfg = Release|Any CPU
{FFE5EE18-FD80-4F48-BAC5-C63C11016AD1}.Release|x86.Build.0 = Release|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Debug|x64.ActiveCfg = Debug|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Debug|x64.Build.0 = Debug|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Debug|x86.ActiveCfg = Debug|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Debug|x86.Build.0 = Debug|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Release|x64.ActiveCfg = Release|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Release|x64.Build.0 = Release|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Release|x86.ActiveCfg = Release|Any CPU
{5D26679D-D5C0-406E-B911-769BAAD73FD1}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
21 changes: 20 additions & 1 deletion MinecraftTabPatcher/MinecraftTabPatcher.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Version>0.1.1</Version>
<Authors>David Schulte</Authors>
<Company />
<AssemblyVersion>0.1.1.0</AssemblyVersion>
<Copyright>David Schulte 2019</Copyright>
<RepositoryUrl>https://github.com/Arcus92/MinecraftTabPatcher.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)'=='x64'">
<Platform>x64</Platform>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)'=='x86'">
<Platform>x86</Platform>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>

<ItemGroup>
Expand Down
17 changes: 17 additions & 0 deletions MinecraftTabPatcher/Properties/PublishProfiles/win-x64.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<TargetFramework>netcoreapp2.1</TargetFramework>
<PublishDir>bin\x64\Release\netcoreapp2.1\publish\</PublishDir>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<_IsPortable>true</_IsPortable>
<TrimUnusedDependencies>true</TrimUnusedDependencies>
</PropertyGroup>
</Project>
17 changes: 17 additions & 0 deletions MinecraftTabPatcher/Properties/PublishProfiles/win-x86.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<TargetFramework>netcoreapp2.1</TargetFramework>
<PublishDir>bin\x86\Release\netcoreapp2.1\publish\</PublishDir>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<_IsPortable>true</_IsPortable>
<TrimUnusedDependencies>true</TrimUnusedDependencies>
</PropertyGroup>
</Project>
38 changes: 25 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,28 @@ The game will not check your keyboard bindings if there is a system key with hig
The tools to create Minecraft 1.13 or 1.14 mods haven't been released yet. I failed to update MCP *(Mod Coder Pack)* by hand. So I created my own patcher to fix the bug in any version of Minecraft. Even in other mods! You can also patch an OptiFine or a Forge version. Try it out!

## How does it work?
* Download and extract the tool.
* Run *MinecraftTabPatcher.exe*.
* Read the instructions carefully and press any key to continue.
* Select the base Minecraft version you want to patch.
* The tool will create a new Minecraft version. Wait.
* Start the Minecraft launcher.
* Create a new profile.
* Choose the new created version and save the profile.
* Now run your new profile in the luncher.
* Bind your inventory to 'tab'.
* Start a world.
* Open and close your inventory by pressing the 'tab' key. It will work.
* Party hard!
1. Download and extract the tool.
2. Run *MinecraftTabPatcher.exe*.
3. Read the instructions carefully and press any key to continue.
4. Select the base Minecraft version you want to patch.
5. The tool will create a new Minecraft version. Wait.
6. Start the Minecraft launcher.
7. Create a new profile.
8. Choose the new created version and save the profile.
9. Now run your new profile in the luncher.
10. Bind your inventory to 'tab'.
11. Start a world.
12. Open and close your inventory by pressing the 'tab' key. It will work!

## Requirements

* Minecraft *(obviously)*
* [.NET Core Runtime 2.1](https://dotnet.microsoft.com/download/dotnet-core/2.1)

## Build from source
* Install [.NET Core SDK 2.1](https://dotnet.microsoft.com/download/dotnet-core/2.1)
* Run ```dotnet restore```
* Run ```dotnet publish -c Release -r win-x86 --self-contained false``` to build a 32bit app
* Run ```dotnet publish -c Release -r win-x64 --self-contained false``` to build a 64bit app
* Remove ```--self-contained false``` to create a portable app. You won't need the *.NET Core Runtime* anymore but it will generate a much larger app.

0 comments on commit 3671594

Please sign in to comment.