-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into log-console
- Loading branch information
Showing
23 changed files
with
439 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: Release Build | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- "*.md" | ||
- "LICENSE" | ||
- ".gitignore" | ||
pull_request: | ||
branches: [master] | ||
types: | ||
- synchronize | ||
- labeled | ||
paths-ignore: | ||
- "*.md" | ||
- "LICENSE" | ||
- ".gitignore" | ||
|
||
jobs: | ||
Build: | ||
if: ${{ github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'update-pr') }} | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
build_type: Release | ||
Update_Release: | ||
name: 'Create/Update Release Asset' | ||
needs: Build | ||
outputs: | ||
version: ${{ steps.version.outputs.prop }} | ||
if: ${{ github.ref != 'refs/heads/master' && contains(github.event.pull_request.labels.*.name, 'update-pr') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Winch Asset | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Winch | ||
path: Winch | ||
|
||
- name: Zip Winch Asset | ||
run: | | ||
cd Winch/ | ||
zip -r Winch.zip * | ||
mv Winch.zip .. | ||
cd .. | ||
- name: Download Example Mods | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Winch Examples | ||
path: Examples | ||
|
||
- name: Zip Example Mods | ||
run: | | ||
for mod in DisasterButton ExampleItems IntroSkipper | ||
do | ||
cd Examples/$mod/ | ||
zip -r $mod.zip * | ||
mv $mod.zip ../.. | ||
cd ../.. | ||
done | ||
- name: Upload Asset | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
commit: master | ||
tag: v${{ github.event.pull_request.title }} | ||
name: Version ${{ github.event.pull_request.title }} | ||
omitBodyDuringUpdate: true | ||
artifacts: Winch.zip, DisasterButton.zip, ExampleItems.zip, IntroSkipper.zip | ||
draft: true | ||
prerelease: false | ||
Pack_Nuget: | ||
name: Pack nuget | ||
needs: Update_Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Get version | ||
id: version | ||
uses: notiz-dev/github-action-json-property@release | ||
with: | ||
path: Winch/mod_meta.json | ||
prop_path: Version | ||
- name: Set up nuget | ||
uses: NuGet/[email protected] | ||
- name: Download Winch Asset | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Winch | ||
path: Winch/bin | ||
- name: Pack nuget | ||
run: nuget pack Winch/Winch.nuspec -Properties "version=${{ steps.version.outputs.prop }}" | ||
- run: dir | ||
- name: Publish nuget | ||
run: nuget push "Winch.*.nupkg" -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json | ||
|
8 changes: 7 additions & 1 deletion
8
.github/workflows/debug-release.yml → .github/workflows/release_debug.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Create/Update Release | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
types: | ||
- ready_for_review | ||
- edited | ||
- labeled | ||
|
||
jobs: | ||
Update_Release: | ||
name: Create/Update Release | ||
if: contains(github.event.pull_request.labels.*.name, 'update-pr') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create/Update Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
name: Version ${{ github.event.pull_request.title }} | ||
tag: ${{ github.event.pull_request.title }} | ||
commit: master | ||
body: | | ||
${{ github.event.pull_request.body }} | ||
**Generated From PR: ${{ github.event.pull_request.html_url }}** | ||
draft: true | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
![Winch](./banner.png) | ||
|
||
[![Discord](https://img.shields.io/discord/1097191320935735346?style=for-the-badge)](https://discord.gg/qFqPuTUAmD) | ||
[![GitHub issues](https://img.shields.io/github/issues/Hacktix/Winch?style=for-the-badge)](https://github.com/Hacktix/Winch/issues) | ||
[![GitHub all releases](https://img.shields.io/github/downloads/Hacktix/Winch/total?style=for-the-badge)](https://github.com/Hacktix/Winch/releases) | ||
[![GitHub all releases](https://img.shields.io/github/downloads/Hacktix/Winch/total?style=for-the-badge)](https://github.com/DREDGE-Mods/Winch/releases) | ||
|
||
**Winch** is intended to be a Mod Loader for the game DREDGE. It is currently heavily under development and there are many improvements to come. As of right now, it's not considered ready for use and there will not be any documentation or instructions until this changes. | ||
Winch is a mod loader for Dredge made by Hacktix. This is a modified version for use with the Dredge mod manager. | ||
|
||
## Roadmap | ||
This repo has a few example mods as well: | ||
|
||
- [x] Code Execution when booting DREDGE | ||
- [x] Basic Configuration Options for Winch | ||
- [x] Loading separate Mod Assemblies at runtime | ||
- [x] Standardized Mod Format (Metadata JSON File) | ||
- [ ] Provide API to Mod Assemblies to interface with the game | ||
- [ ] Documentation & Examples | ||
### Disaster button | ||
|
||
Press the delete key to trigger a random world event. | ||
|
||
### Example Items | ||
|
||
An example of using Winch to add items to the game, adds a cod and diamonds from Minecraft. | ||
|
||
### Intro Skipper | ||
|
||
Self explanatory. Skips the intro cutscene. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
"Version": "1.0", | ||
"ModAssembly": "DisasterButton.dll", | ||
"Entrypoint": "DisasterButton.Loader/Initialize", | ||
"DefaultConfig": { | ||
"DisasterButtonKey": "delete" | ||
}, | ||
"MinWinchVersion": "alpha-1.0" | ||
"Name": "Disaster Button", | ||
"Author": "Hacktix", | ||
"ModGUID": "hacktix.disasterbutton", | ||
"Version": "1.0", | ||
"ModAssembly": "DisasterButton.dll", | ||
"Entrypoint": "DisasterButton.Loader/Initialize", | ||
"DefaultConfig": { | ||
"DisasterButtonKey": "delete" | ||
}, | ||
"MinWinchVersion": "alpha-1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"Version": "1.0", | ||
"ModAssembly": "ExampleItems.dll", | ||
"Entrypoint": "ExampleItems.Loader/Initialize", | ||
"MinWinchVersion": "alpha-1.1" | ||
"Name": "Example Items", | ||
"Author": "Hacktix", | ||
"ModGUID": "hacktix.exampleitems", | ||
"Version": "1.0", | ||
"ModAssembly": "ExampleItems.dll", | ||
"Entrypoint": "ExampleItems.Loader/Initialize", | ||
"MinWinchVersion": "alpha-1.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"Version": "1.0", | ||
"ModAssembly": "IntroSkipper.dll", | ||
"MinWinchVersion": "alpha-1.4", | ||
"ApplyPatches": true | ||
"Name": "Intro Skipper", | ||
"ModGUID": "hacktix.introskipper", | ||
"Version": "1.0", | ||
"ModAssembly": "IntroSkipper.dll", | ||
"MinWinchVersion": "alpha-1.4", | ||
"ApplyPatches": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.