Compare commits
2 Commits
split-gite
...
HFW_Crimso
Author | SHA1 | Date | |
---|---|---|---|
85b1ee5a42 | |||
c77595f327 |
@@ -1,55 +0,0 @@
|
||||
name: Wallset Pipeline
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'assets/**'
|
||||
|
||||
env:
|
||||
ENTRY_FOLDER: assets
|
||||
PACKAGE_NAME: "" # Not used while matrixing
|
||||
RELEASE_VERSION: v${{ github.run_number }}
|
||||
|
||||
jobs:
|
||||
detect-changes:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
changed: ${{ steps.set.outputs.changed }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Dump GitHub context
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: echo "$GITHUB_CONTEXT"
|
||||
|
||||
- name: Detect changed packs
|
||||
id: set
|
||||
run: |
|
||||
PACKS=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]')
|
||||
echo "changed=$PACKS" >> $GITHUB_OUTPUT
|
||||
|
||||
gen-manifest:
|
||||
runs-on: ubuntu-latest
|
||||
needs: detect-changes
|
||||
strategy:
|
||||
matrix:
|
||||
pack: ${{ fromJson(needs.detect-changes.outputs.changed) }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Node.js manifest check
|
||||
run: |
|
||||
cd src/
|
||||
npm install
|
||||
npm run start -- ${ENTRY_FOLDER} ${{ matrix.pack }}
|
||||
cat ../${ENTRY_FOLDER}/${{ matrix.pack }}/theme.json
|
@@ -1,5 +1,5 @@
|
||||
include:
|
||||
- ./*.yml
|
||||
- .gitlab/*.yml
|
||||
|
||||
stages:
|
||||
- Manifest
|
32
.gitlab/HFW_Crimson_Narrows.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
manifest-job/HFW_Crimson_Narrows:
|
||||
variables:
|
||||
PACKAGE_NAME: "HFW_Crimson_Narrows"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/HFW_Crimson_Narrows:
|
||||
needs:
|
||||
- manifest-job/HFW_Crimson_Narrows
|
||||
variables:
|
||||
PACKAGE_NAME: "HFW_Crimson_Narrows"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/HFW_Crimson_Narrows:
|
||||
needs:
|
||||
- manifest-job/HFW_Crimson_Narrows
|
||||
variables:
|
||||
PACKAGE_NAME: "HFW_Crimson_Narrows"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/HFW_Crimson_Narrows:
|
||||
needs:
|
||||
- bundle-job/HFW_Crimson_Narrows
|
||||
variables:
|
||||
PACKAGE_NAME: "HFW_Crimson_Narrows"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/HFW_Crimson_Narrows:
|
||||
needs:
|
||||
- upload-job/HFW_Crimson_Narrows
|
||||
variables:
|
||||
PACKAGE_NAME: "HFW_Crimson_Narrows"
|
||||
extends: .release-job
|
3
.vscode/settings.json
vendored
@@ -7,6 +7,7 @@
|
||||
"#14",
|
||||
"#15",
|
||||
"#2",
|
||||
"#24"
|
||||
"#24",
|
||||
"#26"
|
||||
]
|
||||
}
|
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_1.jpg
Normal file
After Width: | Height: | Size: 1017 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_10.jpg
Normal file
After Width: | Height: | Size: 705 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_11.jpg
Normal file
After Width: | Height: | Size: 677 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_12.jpg
Normal file
After Width: | Height: | Size: 716 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_13.jpg
Normal file
After Width: | Height: | Size: 826 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_14.jpg
Normal file
After Width: | Height: | Size: 842 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_15.jpg
Normal file
After Width: | Height: | Size: 838 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_16.jpg
Normal file
After Width: | Height: | Size: 942 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_17.jpg
Normal file
After Width: | Height: | Size: 940 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_18.jpg
Normal file
After Width: | Height: | Size: 1.0 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_19.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_2.jpg
Normal file
After Width: | Height: | Size: 941 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_20.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_21.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_22.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_23.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_24.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_25.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_26.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_27.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_28.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_29.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_3.jpg
Normal file
After Width: | Height: | Size: 891 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_30.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_31.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_32.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_4.jpg
Normal file
After Width: | Height: | Size: 865 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_5.jpg
Normal file
After Width: | Height: | Size: 750 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_6.jpg
Normal file
After Width: | Height: | Size: 747 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_7.jpg
Normal file
After Width: | Height: | Size: 641 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_8.jpg
Normal file
After Width: | Height: | Size: 698 KiB |
BIN
assets/HFW_Crimson_Narrows/HFW_Crimson_Narrows_9.jpg
Normal file
After Width: | Height: | Size: 772 KiB |
39
assets/HFW_Crimson_Narrows/theme.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"displayName": "Horizon Forbidden West: Crimson Narrows",
|
||||
"imageFilename": "HFW_Crimson_Narrows_*.jpg",
|
||||
"imageCredits": "Gorilla Games",
|
||||
"sunriseImageList": [
|
||||
15,
|
||||
16,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21
|
||||
],
|
||||
"dayImageList": [
|
||||
22,
|
||||
23,
|
||||
25,
|
||||
27,
|
||||
28
|
||||
],
|
||||
"sunsetImageList": [
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"nightImageList": [
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
9,
|
||||
10,
|
||||
12,
|
||||
13,
|
||||
14
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 606 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 1020 KiB |
Before Width: | Height: | Size: 998 KiB |
Before Width: | Height: | Size: 1000 KiB |
Before Width: | Height: | Size: 922 KiB |
Before Width: | Height: | Size: 871 KiB |
Before Width: | Height: | Size: 826 KiB |
Before Width: | Height: | Size: 615 KiB |
Before Width: | Height: | Size: 705 KiB |
Before Width: | Height: | Size: 629 KiB |
Before Width: | Height: | Size: 548 KiB |
Before Width: | Height: | Size: 585 KiB |
Before Width: | Height: | Size: 549 KiB |
Before Width: | Height: | Size: 587 KiB |
Before Width: | Height: | Size: 611 KiB |
Before Width: | Height: | Size: 633 KiB |
Before Width: | Height: | Size: 679 KiB |
Before Width: | Height: | Size: 646 KiB |
Before Width: | Height: | Size: 695 KiB |
Before Width: | Height: | Size: 676 KiB |
Before Width: | Height: | Size: 645 KiB |
Before Width: | Height: | Size: 568 KiB |
Before Width: | Height: | Size: 937 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
@@ -3,19 +3,13 @@ const path = require("path");
|
||||
const iptc = require("node-iptc");
|
||||
const { exit } = require("process");
|
||||
|
||||
|
||||
// Fetch envs to target the right folder
|
||||
const [argRoot, argSlug] = process.argv.slice(2);
|
||||
const workDir = process.env["CI_PROJECT_DIR"];
|
||||
const root = argRoot || process.env["ENTRY_FOLDER"];
|
||||
const slug = argSlug || process.env["PACKAGE_NAME"];
|
||||
if (!workDir || !root || !slug ) {
|
||||
console.error('Erreur : Les variables suivantes sont requises :');
|
||||
if (!workDir) console.error('- CI_PROJECT_DIR (variable d\'environnement)');
|
||||
if (!root) console.error('- ENTRY_FOLDER (env) ou premier argument');
|
||||
if (!slug) console.error('- PACKAGE_NAME (env) ou second argument');
|
||||
exit(1);
|
||||
}
|
||||
const workingDirectory = path.join(workDir, root, slug);
|
||||
const root = process.env["ENTRY_FOLDER"];
|
||||
const slug = process.env["PACKAGE_NAME"];
|
||||
if (!workDir || !slug || !root) exit(1);
|
||||
let workingDirectory = path.join(workDir, root, slug);
|
||||
|
||||
// extract metadata from them
|
||||
fs.readdir(workingDirectory, (err, files) => {
|
||||
|