Feature/python build #25
27
.github/workflows/nuitka.yml
vendored
27
.github/workflows/nuitka.yml
vendored
@ -88,31 +88,6 @@ jobs:
|
|||||||
python nuitka_build.py --github
|
python nuitka_build.py --github
|
||||||
# 集成的构建脚本 好耶!
|
# 集成的构建脚本 好耶!
|
||||||
|
|
||||||
# - name: after build
|
|
||||||
# shell: pwsh
|
|
||||||
# run: |
|
|
||||||
# Get-ChildItem libs/fonts/Fira_Code -Recurse | Remove-Item -Force
|
|
||||||
# Get-ChildItem libs/fonts/scientifica -Recurse | Remove-Item -Force
|
|
||||||
# Remove-Item libs/fonts/Monocraft.otf -Force
|
|
||||||
# Remove-Item libs/fonts/SmileySans-Oblique.ttf -Force
|
|
||||||
# Get-ChildItem libs/fonts/HarmonyOS_Sans/HarmonyOS_Sans_Condensed/* -Recurse | Remove-Item -Force
|
|
||||||
# Get-ChildItem libs/fonts/HarmonyOS_Sans/HarmonyOS_Sans/* -Recurse | Remove-Item -Force
|
|
||||||
#
|
|
||||||
# Copy-Item libs/fonts build\DR.dist\libs\fonts -Recurse
|
|
||||||
# # Copy-Item libs\pyglet\ build\DR.dist -Recurse
|
|
||||||
#
|
|
||||||
# Rename-Item build/DR.dist Difficult-Rocket
|
|
||||||
# python ./.github/workflows/post_compile.py
|
|
||||||
|
|
||||||
|
|
||||||
upload-artifact:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
needs:
|
|
||||||
- build-nuitka
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
# 获取短 sha
|
# 获取短 sha
|
||||||
- name: Get short commit sha
|
- name: Get short commit sha
|
||||||
id: get_short_sha
|
id: get_short_sha
|
||||||
@ -129,4 +104,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}
|
name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}
|
||||||
path: |
|
path: |
|
||||||
build/main.zip
|
build/github/DR.dist
|
||||||
|
@ -76,11 +76,11 @@ if __name__ == '__main__':
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
print('Remove Useless Files Done!')
|
print('Remove Useless Files Done!')
|
||||||
# 压缩
|
# 压缩
|
||||||
with zipfile.ZipFile(Path('./build/Difficult_Rocket.zip'), 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as dist_zip:
|
# with zipfile.ZipFile(Path('./build/Difficult_Rocket.zip'), 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as dist_zip:
|
||||||
for path, sub_paths, sub_files in os.walk(compiler.output_path / 'DR.dist'):
|
# for path, sub_paths, sub_files in os.walk(compiler.output_path / 'DR.dist'):
|
||||||
print(f'writing {path}')
|
# print(f'writing {path}')
|
||||||
for file in sub_files:
|
# for file in sub_files:
|
||||||
file_path = os.path.join(path, file)
|
# file_path = os.path.join(path, file)
|
||||||
dist_zip.write(file_path)
|
# dist_zip.write(file_path)
|
||||||
print('Zip Done!')
|
# print('Zip Done!')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user