Merge branch 'main' of github.com:Miepee/AM2RPortHelper

mac
Miepee 3 years ago
commit 1e0fa8c976

@ -14,14 +14,14 @@ jobs:
configuration: [Release] configuration: [Release]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
COMMAND: AM2RPortHelperCLI.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r linux-x64 --no-self-contained COMMAND: GlennCLI.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r linux-x64 --no-self-contained
ARTIFACT: AM2RPortHelperCLI/bin/Release/net6.0/linux-x64/publish/ ARTIFACT: GlennCLI/bin/Release/net6.0/linux-x64/publish/
- os: macOS-latest - os: macOS-latest
COMMAND: AM2RPortHelperCLI.csproj -r osx-x64 --no-self-contained COMMAND: GlennCLI.csproj -r osx-x64 --no-self-contained
ARTIFACT: AM2RPortHelperCLI/bin/Release/net6.0/osx-x64/publish ARTIFACT: GlennCLI/bin/Release/net6.0/osx-x64/publish
- os: windows-latest - os: windows-latest
COMMAND: AM2RPortHelperCLI.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r win-x86 --no-self-contained COMMAND: GlennCLI.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r win-x86 --no-self-contained
ARTIFACT: AM2RPortHelperCLI\bin\Release\net6.0\win-x86\publish ARTIFACT: GlennCLI\bin\Release\net6.0\win-x86\publish
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -34,10 +34,10 @@ jobs:
with: with:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Restore dependencies - name: Restore dependencies
working-directory: ./AM2RPortHelperCLI working-directory: ./GlennCLI
run: dotnet restore run: dotnet restore
- name: Build - name: Build
working-directory: ./AM2RPortHelperCLI working-directory: ./GlennCLI
run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" /p:WarningLevel=3 run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" /p:WarningLevel=3
# Steps for uploading artifacts. # Steps for uploading artifacts.
- name: Zip to Archive - name: Zip to Archive
@ -56,17 +56,17 @@ jobs:
configuration: [Release] configuration: [Release]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
COMMAND: AM2RPortHelperGUI.Gtk.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r linux-x64 --no-self-contained COMMAND: GlennGUI.Gtk.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r linux-x64 --no-self-contained
ARTIFACT: AM2RPortHelperGUI.Gtk/bin/Release/net6.0/linux-x64/publish/ ARTIFACT: GlennGUI.Gtk/bin/Release/net6.0/linux-x64/publish/
DIR: AM2RPortHelperGUI.Gtk DIR: GlennGUI.Gtk
- os: macOS-latest - os: macOS-latest
COMMAND: AM2RPortHelperGUI.Mac.csproj -r osx-x64 --no-self-contained COMMAND: GlennGUI.Mac.csproj -r osx-x64 --self-contained
ARTIFACT: AM2RPortHelperGUI.Mac/bin/Release/net6.0/osx-x64/publish ARTIFACT: GlennGUI.Mac/bin/Release/net6.0/osx-x64/publish
DIR: AM2RPortHelperGUI.Mac DIR: GlennGUI.Mac
- os: windows-latest - os: windows-latest
COMMAND: AM2RPortHelperGUI.Wpf.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r win-x86 --no-self-contained COMMAND: GlennGUI.Wpf.csproj -p:PublishSingleFile=true -p:DebugType=embedded -r win-x86 --no-self-contained
ARTIFACT: AM2RPortHelperGUI.Wpf\bin\Release\net6.0-windows\win-x86\publish ARTIFACT: GlennGUI.Wpf\bin\Release\net6.0-windows\win-x86\publish
DIR: AM2RPortHelperGUI.Wpf DIR: GlennGUI.Wpf
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -79,14 +79,14 @@ jobs:
with: with:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Restore dependencies - name: Restore dependencies
working-directory: ./AM2RPortHelperGUI/${{ matrix.DIR }} working-directory: ./GlennGUI/${{ matrix.DIR }}
run: dotnet restore run: dotnet restore
- name: Build - name: Build
working-directory: ./AM2RPortHelperGUI/${{ matrix.DIR }} working-directory: ./GlennGUI/${{ matrix.DIR }}
run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" /p:WarningLevel=3 run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" /p:WarningLevel=3
# Steps for uploading artifacts. # Steps for uploading artifacts.
- name: Zip to Archive - name: Zip to Archive
run: 7z a -tzip ${{ matrix.os }}.zip ./AM2RPortHelperGUI/${{ matrix.ARTIFACT }} run: 7z a -tzip ${{ matrix.os }}.zip ./GlennGUI/${{ matrix.ARTIFACT }}
- name: Upload Artifacts - name: Upload Artifacts
uses: actions/upload-artifact@v1.0.0 uses: actions/upload-artifact@v1.0.0
with: with:
@ -105,7 +105,7 @@ jobs:
with: with:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Restore dependencies - name: Restore dependencies
working-directory: ./AM2RPortHelperTests/ working-directory: ./GlennLibTests/
run: dotnet restore run: dotnet restore
- name: Test - name: Test
run: dotnet test run: dotnet test

@ -1,10 +1,10 @@
# AM2RPortHelper # Glenn
A simple tool to make porting Windows builds of self-created AM2R-Mods to other platforms easier. This will *only* work with VM-mods of the Community Updates, neither YYC mods nor mods of the original 1.1 will work. Glenn is a tool to make porting builds of self-created AM2R Mods to other platforms easier. This will *only* work with VM-mods of the Community Updates, neither YYC mods nor mods of the original AM2R 1.1 will work.
You need to have at least .NET Core 6 installed in order to run this. You need to have at least .NET Core 6 installed in order to run this.
## How do I use this? ## How do I use this?
First you need a zip of the self-created mod. If you're using GameMaker: Studio, you can just use the zip it created, if you're using UndertaleModTool you need to zip the files first (your files should not be in a subfolder in the zip!). After that, just feed it into this tool and, select if you want to have a port made for Linux, Android or Mac. First you need a zip of the self-created mod. If you're using GameMaker: Studio, you can just use the zip it created. If you're using UndertaleModTool you need to zip the files first (your files should not be in a subfolder in the zip!). After that, just feed it into this tool and, select if you want to have a port made for Linux, Android or Mac.
It will then create a new zip/apk, which can be used for the [AM2RModPacker](https://github.com/AM2R-Community-Developers/AM2RModpacker-Mac), in the directory next to the program. For the Mac build, you need to use my ModPacker-Mac version which can be found [here](https://github.com/AM2R-Community-Developers/AM2RModpacker-Mac). It will then create a new zip/apk in the directory next to the program, which can be used for [Atomic](https://github.com/AM2R-Community-Developers/Atomic).
To create Android builds, you need to have Java installed. To create Android builds, you need to have Java installed.
@ -21,9 +21,6 @@ By default, the ports will use stock splash and icon images. *It is recommended
### Mac ### Mac
- The following functions will crash the game if you'll use them: - The following functions will crash the game if you'll use them:
- `immersion_play_effect` and `immersion_stop`, `font_replace`. Make sure to either create an OS check before using those, or don't use them entirely. ***AM2R uses these by default, make sure to remove them or create an OS check!*** - `immersion_play_effect` and `immersion_stop`, `font_replace`. Make sure to either create an OS check before using those, or don't use them entirely. ***AM2R uses these by default, make sure to remove them or create an OS check!***
- If you use a custom save directory that's *not* inside of `%localappdata%/AM2R`, but instead in `%localappdata%/MyModWithCoolName` you have to change `com.yoyogames.am2r` to `com.yoyogames.mymodwithcoolname` (needs to be all lowercase) in the following files:
* `utils/Contents/Info.plist`, .
* `utils/Contents/Resources/yoyorunner.config`
### Android ### Android
- If you use a custom save directory that's *not* inside of `%localappdata%/AM2R`, but instead in `%localappdata%/MyModWithCoolName` you have to change all instances of `com.companyname.AM2RWrapper` to `com.companyname.MyModWithCoolName` in the `AndroidManifest.xml` inside of the `AM2RWrapper.apk`. For this you have to decompile the apk with apktool (`java -jar apktool.jar d AM2RWrapper.apk`), edit the contents, and then rebuild it (`java -jar b apktool.jar b AM2RWrapper`) and sign it (`java -jar uber-apk-signer.jar -a theNewApk.apk`). - Due to Android being extremely sandboxed, users are unable to get files if you save something to `working_directory`.

Loading…
Cancel
Save