Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
fireundubh committed Aug 15, 2024
2 parents c8feacb + 2de3b42 commit f81539c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/nuitka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Visual Studio environment
if: success()
uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Set up Python 3.10.4 (x64)
- name: Set up Python 3.12.4 (x64)
if: success()
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.10.4
python-version: 3.12.4
architecture: x64
cache: pip
- name: Create virtual environment
if: success()
run: python -m venv env
Expand All @@ -38,7 +39,7 @@ jobs:
run: python D:\a\pyro\pyro\build.py --no-zip
- name: Upload artifact
if: success()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: pyro-master-${{ github.event.repository.pushed_at }}
path: D:\a\pyro\pyro\pyro.dist
22 changes: 18 additions & 4 deletions pyro/PapyrusProject.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,24 @@ def _parse_variables(self, variables_node: etree.ElementBase) -> None:

self.variables.update({key: value})

self.variables.update({
'UNIXTIME': str(int(time.time())),
'PROGRAM_PATH': self.program_path,
'PROJECT_PATH': self.project_path,
'O_BSARCH_PATH': self.options.bsarch_path,
'O_COMPILER_PATH': self.options.compiler_path,
'O_COMPILER_CONFIG_PATH': self.options.compiler_config_path,
'O_FLAGS_PATH': self.options.flags_path,
'O_GAME_PATH': self.options.game_path,
'O_LOG_PATH': self.options.log_path,
'O_OUTPUT_PATH': self.options.output_path,
'O_PACKAGE_PATH': self.options.package_path,
'O_REGISTRY_PATH': self.options.registry_path,
'O_REMOTE_TEMP_PATH': self.options.remote_temp_path,
'O_TEMP_PATH': self.options.temp_path,
'O_ZIP_OUTPUT_PATH': self.options.zip_output_path
})

# allow variables to reference other variables
for key, value in self.variables.items():
self.variables.update({key: self.parse(value)})
Expand All @@ -307,10 +325,6 @@ def _parse_variables(self, variables_node: etree.ElementBase) -> None:
value = self.variables[key]
self.variables.update({key: self.parse(value)})

self.variables.update({
'UNIXTIME': str(int(time.time()))
})

def _update_attributes(self, parent_node: etree.ElementBase) -> None:
"""Updates attributes of element tree with missing attributes and default values"""
ppj_bool_keys = [
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lxml
nuitka
lxml>=5.2.2
nuitka>=2.3.10
psutil==5.9.3
wcmatch
ordered-set
wcmatch>=8.5.2
ordered-set>=4.1.0

0 comments on commit f81539c

Please sign in to comment.