mirror of
https://github.com/open-goal/jak-project
synced 2026-07-29 23:49:11 -04:00
release: include error metadata file for launcher purposes (#1463)
* release: include error metadata file for launcher purposes * release: put release assets in the top level of the 7z/tarball (no out/ dir) * extractor: ensure critical directories are created * extractor: handle weird Win32 path prefix `\\?\` by stripping it out * release: avoid using `-C` with `tar`
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"4000": {
|
||||
"msg": "Validation Failed: Cannot locate ELF"
|
||||
},
|
||||
"4001": {
|
||||
"msg": "Validation Failed: Game serial missing from valid game database"
|
||||
},
|
||||
"4002": {
|
||||
"msg": "Validation Failed: ELF missing from valid game database"
|
||||
},
|
||||
"4010": {
|
||||
"msg": "Validation Failed: Bad or unexpected ISO contents"
|
||||
},
|
||||
"4011": {
|
||||
"msg": "Validation Failed: Extracted an unexpected amount of files from ISO"
|
||||
},
|
||||
"4020": {
|
||||
"msg": "Validation Failed: ISO Extraction failed, output directory did not contain expected files"
|
||||
}
|
||||
}
|
||||
@@ -16,13 +16,15 @@ strip $DEST/goalc
|
||||
strip $DEST/extractor
|
||||
|
||||
mkdir -p $DEST/data
|
||||
mkdir -p $DEST/data/launcher/
|
||||
mkdir -p $DEST/data/decompiler/
|
||||
mkdir -p $DEST/data/assets
|
||||
mkdir -p $DEST/data/game
|
||||
mkdir -p $DEST/data/log
|
||||
mkdir -p $DEST/data/game/graphics/opengl_renderer/
|
||||
|
||||
cp -r $SOURCE/.github/scripts/releases/error-code-metadata.json $DEST/data/launcher/error-code-metadata.json
|
||||
cp -r $SOURCE/decompiler/config $DEST/data/decompiler/
|
||||
cp -r $SOURCE/goal_src $DEST/data
|
||||
cp -r $SOURCE/game/assets $DEST/data/game/
|
||||
cp -r $SOURCE/game/graphics/opengl_renderer/shaders $DEST/data/game/graphics/opengl_renderer
|
||||
cp -r $SOURCE/game/graphics/opengl_renderer/shaders $DEST/data/game/graphics/opengl_renderer
|
||||
|
||||
@@ -12,12 +12,14 @@ cp $SOURCE/build/bin/goalc.exe $DEST
|
||||
cp $SOURCE/build/bin/extractor.exe $DEST
|
||||
|
||||
mkdir -p $DEST/data
|
||||
mkdir -p $DEST/data/launcher/
|
||||
mkdir -p $DEST/data/decompiler/
|
||||
mkdir -p $DEST/data/assets
|
||||
mkdir -p $DEST/data/game
|
||||
mkdir -p $DEST/data/log
|
||||
mkdir -p $DEST/data/game/graphics/opengl_renderer/
|
||||
|
||||
cp -r $SOURCE/.github/scripts/releases/error-code-metadata.json $DEST/data/launcher/error-code-metadata.json
|
||||
cp -r $SOURCE/decompiler/config $DEST/data/decompiler/
|
||||
cp -r $SOURCE/goal_src $DEST/data
|
||||
cp -r $SOURCE/game/assets $DEST/data/game/
|
||||
|
||||
@@ -114,9 +114,8 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ./ci-artifacts/out
|
||||
./.github/scripts/releases/extract_build_linux.sh ./ci-artifacts/out ./
|
||||
pushd ci-artifacts
|
||||
tar czf linux.tar.gz ./out
|
||||
popd
|
||||
cd ci-artifacts/out
|
||||
tar czf ../linux.tar.gz .
|
||||
|
||||
- name: Upload Assets and Potential Publish Release
|
||||
if: github.repository == 'open-goal/jak-project' && startsWith(github.ref, 'refs/tags/') && matrix.compiler == 'clang'
|
||||
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ./ci-artifacts/out
|
||||
./.github/scripts/releases/extract_build_windows.sh ./ci-artifacts/out ./
|
||||
7z a -tzip ./ci-artifacts/windows.zip ./ci-artifacts/out
|
||||
7z a -tzip ./ci-artifacts/windows.zip ./ci-artifacts/out/*
|
||||
|
||||
- name: Upload Assets and Potential Publish Release
|
||||
if: github.repository == 'open-goal/jak-project' && startsWith(github.ref, 'refs/tags/') && matrix.compiler == 'clang'
|
||||
|
||||
Reference in New Issue
Block a user