Skip to content

Commit

Permalink
thanks minemaker
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 committed Aug 19, 2024
1 parent 17c02ec commit 9ff5aea
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 72 deletions.
48 changes: 5 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,52 +54,14 @@ jobs:
name: Build Output
path: ${{ steps.build.outputs.build-output }}

draft:
name: Draft Release
release:
name: Release the mod
runs-on: ubuntu-latest
needs: ['package']

steps:
- name: Delete Existing Release
uses: actions/github-script@v7
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const owner = process.env.GITHUB_REPOSITORY.split("/")[0];
const repo = process.env.GITHUB_REPOSITORY.split("/")[1];
const response = await github.rest.repos.listReleases({ owner, repo });
console.log("Checking for existing release...");
for (const release of response.data) {
if (release.tag_name == process.env.COMMIT_MESSAGE) {
console.log("Existing release found, deleting...");
await github.rest.repos.deleteRelease({ owner, repo, release_id: release.id });
await github.rest.git.updateRef({
owner,
repo,
ref: `tags/${release.tag_name}`,
sha: context.sha,
force: true
});
}
}
console.log("Done.");
- name: Download Build Output
uses: actions/download-artifact@v4
with:
name: Build Output
path: build-output
- uses: actions/checkout@v4

- name: Create Draft Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: hiimjustin000/release-geode-mod@main
with:
files: |
build-output/*.geode
build-output/*.pdb
tag_name: ${{ github.event.head_commit.message }}
name: ${{ github.event.head_commit.message }}
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(IntegratedDemonlist VERSION 1.5.5)
project(IntegratedDemonlist VERSION 1.5.6)

add_library(${PROJECT_NAME} SHARED
src/IDListLayer.cpp
Expand Down
26 changes: 0 additions & 26 deletions CMakeSettings.json

This file was deleted.

3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Integrated Demonlist Changelog
## v1.5.6 (2024-08-19)
- Fixed a bug where the demonlist page would crash the game if it was exited too quickly

## v1.5.5 (2024-07-28)
- Altered the appearance of the demonlist button

Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"geode": "3.3.1",
"geode": "3.4.0",
"gd": {
"android": "2.206",
"win": "2.206",
"mac": "2.206"
},
"version": "v1.5.5",
"version": "v1.5.6",
"id": "hiimjustin000.integrated_demonlist",
"name": "Integrated Demonlist",
"developer": "hiimjustin000",
Expand Down
2 changes: 2 additions & 0 deletions src/IDListLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,6 @@ void IDListLayer::setIDPopupClosed(SetIDPopup*, int page) {

IDListLayer::~IDListLayer() {
CC_SAFE_RELEASE(m_loadingCircle);
auto glm = GameLevelManager::sharedState();
if (glm->m_levelManagerDelegate == this) glm->m_levelManagerDelegate = nullptr;
}

0 comments on commit 9ff5aea

Please sign in to comment.