Merge branch 'miketrethewey-DoorRelease' into DoorDev

This commit is contained in:
aerinon
2021-01-11 11:35:55 -07:00
331 changed files with 86 additions and 66 deletions

View File

@@ -2,13 +2,7 @@
name: Build name: Build
# fire on # fire on
on: on: [ push, pull_request ]
push:
branches:
- DoorDev
pull_request:
branches:
- DoorDev
# stuff to do # stuff to do
jobs: jobs:
@@ -26,8 +20,8 @@ jobs:
# os & python versions # os & python versions
strategy: strategy:
matrix: matrix:
os-name: [ ubuntu-latest, ubuntu-16.04, macOS-latest, windows-latest ] os-name: [ ubuntu-latest, ubuntu-18.04, macOS-latest, windows-latest ]
python-version: [ 3.7 ] python-version: [ 3.8 ]
# needs: [ install-test ] # needs: [ install-test ]
steps: steps:
# checkout commit # checkout commit
@@ -57,11 +51,11 @@ jobs:
# run build-gui.py # run build-gui.py
- name: Build GUI - name: Build GUI
run: | run: |
python ./build-gui.py python ./source/meta/build-gui.py
# run build-dr.py # run build-dr.py
- name: Build DungeonRandomizer - name: Build DungeonRandomizer
run: | run: |
python ./build-dr.py python ./source/meta/build-dr.py
# prepare binary artifacts for later step # prepare binary artifacts for later step
- name: Prepare Binary Artifacts - name: Prepare Binary Artifacts
env: env:
@@ -88,8 +82,8 @@ jobs:
strategy: strategy:
matrix: matrix:
# install/release on not xenial # install/release on not xenial
os-name: [ ubuntu-latest, macOS-latest, windows-latest ] os-name: [ ubuntu-latest, ubuntu-18.04, macOS-latest, windows-latest ]
python-version: [ 3.7 ] python-version: [ 3.8 ]
needs: [ install-build ] needs: [ install-build ]
steps: steps:
@@ -150,9 +144,9 @@ jobs:
# os & python versions # os & python versions
strategy: strategy:
matrix: matrix:
# release only on bionic # release only on focal/bionic
os-name: [ ubuntu-latest ] os-name: [ ubuntu-latest ]
python-version: [ 3.7 ] python-version: [ 3.8 ]
needs: [ install-prepare-release ] needs: [ install-prepare-release ]
steps: steps:
@@ -208,6 +202,7 @@ jobs:
body="${body//$'\n'/'%0A'}" body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}" body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body" echo "::set-output name=body::$body"
if: contains(github.event, 'push')
# create a pre/release # create a pre/release
- name: Create a Pre/Release - name: Create a Pre/Release
id: create_release id: create_release
@@ -220,7 +215,7 @@ jobs:
body: ${{ steps.release_notes.outputs.body }} body: ${{ steps.release_notes.outputs.body }}
draft: true draft: true
prerelease: true prerelease: true
if: contains(github.ref, 'master') || contains(github.ref, 'stable') || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease') if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
# upload linux archive asset # upload linux archive asset
- name: Upload Linux Archive Asset - name: Upload Linux Archive Asset
id: upload-linux-asset id: upload-linux-asset
@@ -232,7 +227,7 @@ jobs:
asset_path: ../deploy/linux/ALttPDoorRandomizer.tar.gz asset_path: ../deploy/linux/ALttPDoorRandomizer.tar.gz
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-linux-bionic.tar.gz asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-linux-bionic.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip
if: contains(github.ref, 'master') || contains(github.ref, 'stable') || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease') if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
# upload macos archive asset # upload macos archive asset
- name: Upload MacOS Archive Asset - name: Upload MacOS Archive Asset
id: upload-macos-asset id: upload-macos-asset
@@ -244,7 +239,7 @@ jobs:
asset_path: ../deploy/macos/ALttPDoorRandomizer.tar.gz asset_path: ../deploy/macos/ALttPDoorRandomizer.tar.gz
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-osx.tar.gz asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-osx.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip
if: contains(github.ref, 'master') || contains(github.ref, 'stable') || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease') if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
# upload windows archive asset # upload windows archive asset
- name: Upload Windows Archive Asset - name: Upload Windows Archive Asset
id: upload-windows-asset id: upload-windows-asset
@@ -256,4 +251,4 @@ jobs:
asset_path: ../deploy/windows/ALttPDoorRandomizer.zip asset_path: ../deploy/windows/ALttPDoorRandomizer.zip
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-windows.zip asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-windows.zip
asset_content_type: application/zip asset_content_type: application/zip
if: contains(github.ref, 'master') || contains(github.ref, 'stable') || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease') if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))

1
Gui.py
View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
import json import json
import os import os
import sys import sys

View File

@@ -36,6 +36,9 @@ def is_bundled():
return getattr(sys, 'frozen', False) return getattr(sys, 'frozen', False)
def local_path(path): def local_path(path):
# just do stuff here and bail
return os.path.join(".", path)
if local_path.cached_path is not None: if local_path.cached_path is not None:
return os.path.join(local_path.cached_path, path) return os.path.join(local_path.cached_path, path)
@@ -51,6 +54,9 @@ def local_path(path):
local_path.cached_path = None local_path.cached_path = None
def output_path(path): def output_path(path):
# just do stuff here and bail
return os.path.join(".", path)
if output_path.cached_path is not None: if output_path.cached_path is not None:
return os.path.join(output_path.cached_path, path) return os.path.join(output_path.cached_path, path)
@@ -61,15 +67,7 @@ def output_path(path):
# has been packaged, so cannot use CWD for output. # has been packaged, so cannot use CWD for output.
if sys.platform == 'win32': if sys.platform == 'win32':
#windows #windows
import ctypes.wintypes documents = os.path.join(os.path.expanduser("~"),"Documents")
CSIDL_PERSONAL = 5 # My Documents
SHGFP_TYPE_CURRENT = 0 # Get current, not default value
buf = ctypes.create_unicode_buffer(ctypes.wintypes.MAX_PATH)
ctypes.windll.shell32.SHGetFolderPathW(None, CSIDL_PERSONAL, None, SHGFP_TYPE_CURRENT, buf)
documents = buf.value
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
from AppKit import NSSearchPathForDirectoriesInDomains # pylint: disable=import-error from AppKit import NSSearchPathForDirectoriesInDomains # pylint: disable=import-error
# http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains # http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains
@@ -655,4 +653,3 @@ if __name__ == '__main__':
# room_palette_data(old_rom=sys.argv[1]) # room_palette_data(old_rom=sys.argv[1])
# extract_data_from_us_rom(sys.argv[1]) # extract_data_from_us_rom(sys.argv[1])
extract_data_from_jp_rom(sys.argv[1]) extract_data_from_jp_rom(sys.argv[1])

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More