Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-cn-database-generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
301zrg
ygopro-cn-database-generator
Commits
aa0c242a
Commit
aa0c242a
authored
Oct 26, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add OUTPUT_SYMBOL
parent
a8395c87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
ci-scripts/generate.sh
ci-scripts/generate.sh
+10
-7
subenv.ts
subenv.ts
+6
-0
No files found.
ci-scripts/generate.sh
View file @
aa0c242a
...
...
@@ -6,21 +6,24 @@ export JP_DATABASE_PATH="./mats/ygopro-database/locales/ja-JP/cards.cdb"
export
SOURCE_TARGET_PATH
=
"./mats/ygopro-database/locales/
$LOCALE
/cards.cdb"
export
LFLIST_PATH
=
"./mats/lflist.conf"
export
CARD_LIST_DATABASE_PATH
=
"./mats/pack.db"
export
OUTPUT_PATH
=
"./output/
$FILE_SYMBOL
-
$LOCALE
"
if
[
-z
"
$OUTPUT_SYMBOL
"
]
;
then
export
OUTPUT_SYMBOL
=
"
$FILE_SYMBOL
"
fi
export
OUTPUT_PATH
=
"./output/
$OUTPUT_SYMBOL
-
$LOCALE
"
# apt update ; apt -y install sqlite3
npm run
"
$NPM_SCRIPT
"
cp
-rf
./extras/
$
FILE
_SYMBOL
/injects/
*
"
$OUTPUT_PATH
/"
||
true
cp
-rf
./extras/
$
OUTPUT
_SYMBOL
/injects/
*
"
$OUTPUT_PATH
/"
||
true
cd
"
$OUTPUT_PATH
"
tar
zcvf
"../
$
FILE
_SYMBOL
-data-
$LOCALE
.tar.gz"
deck expansions
7z a
-mx9
"../
$
FILE
_SYMBOL
-data-
$LOCALE
.zip"
deck expansions
7z a
-mx9
"../
$
FILE
_SYMBOL
-data-
$LOCALE
.7z"
deck expansions
tar
zcvf
"../
$
OUTPUT
_SYMBOL
-data-
$LOCALE
.tar.gz"
deck expansions
7z a
-mx9
"../
$
OUTPUT
_SYMBOL
-data-
$LOCALE
.zip"
deck expansions
7z a
-mx9
"../
$
OUTPUT
_SYMBOL
-data-
$LOCALE
.7z"
deck expansions
cd
expansions
7z a
-mx9
../../
$
FILE
_SYMBOL
-expansions-
$LOCALE
-ypk
.zip
*
7z a
-mx9
../../
$
OUTPUT
_SYMBOL
-expansions-
$LOCALE
-ypk
.zip
*
cd
../..
mv
$
FILE_SYMBOL
-expansions-
$LOCALE
-ypk
.zip
$FILE
_SYMBOL
-expansions-
$LOCALE
.ypk
mv
$
OUTPUT_SYMBOL
-expansions-
$LOCALE
-ypk
.zip
$OUTPUT
_SYMBOL
-expansions-
$LOCALE
.ypk
subenv.ts
View file @
aa0c242a
...
...
@@ -48,6 +48,12 @@ async function main() {
await
Promise
.
all
([
readDbAndInject
(
`./extras/
${
fileSymbol
}
/includes.cdb`
,
includes
),
readDbAndInject
(
`./extras/
${
fileSymbol
}
/excludes.cdb`
,
excludes
),
...(
process
.
env
.
INCLUDES_DB
?
process
.
env
.
INCLUDES_DB
.
split
(
"
,
"
).
map
(
dbPath
=>
readDbAndInject
(
dbPath
.
trim
(),
includes
)
)
:
[]),
...(
process
.
env
.
EXCLUDES_DB
?
process
.
env
.
EXCLUDES_DB
.
split
(
"
,
"
).
map
(
dbPath
=>
readDbAndInject
(
dbPath
.
trim
(),
excludes
)
)
:
[]),
])
const
excludesSet
=
new
Set
(
excludes
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment