Compare commits
4 Commits
no-weight-
...
7.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c69783b3 | ||
|
|
da4960298b | ||
|
|
a9706d88a5 | ||
|
|
9dd02260d5 |
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@@ -6,18 +6,24 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
BLENDER_VERSION: blender-4.2.0-beta+v42.d19d23e91f65-linux.x86_64-release
|
BLENDER_VERSION: blender-4.2.0-linux-x64
|
||||||
|
ADDON_NAME: io_scene_psk_psa
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: SebRollen/toml-action@v1.2.0
|
||||||
|
id: read_manifest
|
||||||
|
with:
|
||||||
|
file: '${{ env.ADDON_NAME }}/blender_manifest.toml'
|
||||||
|
field: 'version'
|
||||||
- name: Set derived environment variables
|
- name: Set derived environment variables
|
||||||
run: |
|
run: |
|
||||||
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
||||||
echo "BLENDER_URL=https://cdn.builder.blender.org/download/daily/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
echo "BLENDER_URL=https://mirrors.iu13.net/blender/release/Blender4.2/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
||||||
- name: Install Blender Dependencies
|
- name: Install Blender Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libxxf86vm-dev -y
|
sudo apt-get install libxxf86vm-dev -y
|
||||||
@@ -35,14 +41,14 @@ jobs:
|
|||||||
echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH
|
echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH
|
||||||
- name: Build extension
|
- name: Build extension
|
||||||
run: |
|
run: |
|
||||||
pushd ./io_scene_psk_psa
|
pushd ./${{ env.ADDON_NAME }}
|
||||||
blender --command extension build
|
blender --command extension build
|
||||||
mkdir artifact
|
mkdir artifact
|
||||||
unzip -q io_scene_psk_psa.zip -d ./artifact
|
unzip -q ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}.zip -d ./artifact
|
||||||
popd
|
popd
|
||||||
- name: Archive addon
|
- name: Archive addon
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: io_scene_psk_psa-${{ github.ref_name }}-${{ github.sha }}
|
name: ${{ env.ADDON_NAME }}-${{ github.ref_name }}-${{ github.sha }}
|
||||||
path: |
|
path: |
|
||||||
./io_scene_psk_psa/artifact/*
|
./${{ env.ADDON_NAME }}/artifact/*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
schema_version = "1.0.0"
|
schema_version = "1.0.0"
|
||||||
id = "io_scene_psk_psa"
|
id = "io_scene_psk_psa"
|
||||||
version = "7.1.0"
|
version = "7.1.1"
|
||||||
name = "Unreal PSK/PSA (.psk/.psa)"
|
name = "Unreal PSK/PSA (.psk/.psa)"
|
||||||
tagline = "Import and export PSK and PSA files used in Unreal Engine"
|
tagline = "Import and export PSK and PSA files used in Unreal Engine"
|
||||||
maintainer = "Colin Basnett <cmbasnett@gmail.com>"
|
maintainer = "Colin Basnett <cmbasnett@gmail.com>"
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ class PSA_OT_export(Operator, ExportHelper):
|
|||||||
bl_idname = 'psa_export.operator'
|
bl_idname = 'psa_export.operator'
|
||||||
bl_label = 'Export'
|
bl_label = 'Export'
|
||||||
bl_options = {'INTERNAL', 'UNDO'}
|
bl_options = {'INTERNAL', 'UNDO'}
|
||||||
__doc__ = 'Export actions to PSA'
|
bl_description = 'Export actions to PSA'
|
||||||
filename_ext = '.psa'
|
filename_ext = '.psa'
|
||||||
filter_glob: StringProperty(default='*.psa', options={'HIDDEN'})
|
filter_glob: StringProperty(default='*.psa', options={'HIDDEN'})
|
||||||
filepath: StringProperty(
|
filepath: StringProperty(
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ class PSK_OT_export(Operator, ExportHelper):
|
|||||||
bl_idname = 'export.psk'
|
bl_idname = 'export.psk'
|
||||||
bl_label = 'Export'
|
bl_label = 'Export'
|
||||||
bl_options = {'INTERNAL', 'UNDO'}
|
bl_options = {'INTERNAL', 'UNDO'}
|
||||||
__doc__ = 'Export mesh and armature to PSK'
|
bl_description = 'Export mesh and armature to PSK'
|
||||||
filename_ext = '.psk'
|
filename_ext = '.psk'
|
||||||
filter_glob: StringProperty(default='*.psk', options={'HIDDEN'})
|
filter_glob: StringProperty(default='*.psk', options={'HIDDEN'})
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class PSK_OT_import(Operator, ImportHelper):
|
|||||||
bl_idname = 'import_scene.psk'
|
bl_idname = 'import_scene.psk'
|
||||||
bl_label = 'Import'
|
bl_label = 'Import'
|
||||||
bl_options = {'INTERNAL', 'UNDO', 'PRESET'}
|
bl_options = {'INTERNAL', 'UNDO', 'PRESET'}
|
||||||
__doc__ = 'Load a PSK file'
|
bl_description = 'Import a PSK file'
|
||||||
filename_ext = '.psk'
|
filename_ext = '.psk'
|
||||||
filter_glob: StringProperty(default='*.psk;*.pskx', options={'HIDDEN'})
|
filter_glob: StringProperty(default='*.psk;*.pskx', options={'HIDDEN'})
|
||||||
filepath: StringProperty(
|
filepath: StringProperty(
|
||||||
|
|||||||
Reference in New Issue
Block a user