Skip to content

Commit

Permalink
Merge pull request #210 from openzim/output-file-naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 authored Mar 10, 2023
2 parents eb6cfd8 + 707f563 commit cd72316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions steps/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const exportData = async () => {

const targets: Target[] = [
{
output: `phet_mul_${datePostfix}`,
output: `phet_mul_all_${datePostfix}`,
date: now,
languages: Object.keys(languages).filter((lang) => {
const langCode = /^(\w{2})_/gm.exec(lang)?.pop()
Expand All @@ -259,7 +259,7 @@ const exportData = async () => {
if (!argv.mulOnly) {
for (const lang of Object.keys(languages)) {
targets.push({
output: `phet_${lang.toLowerCase().replace('_', '-')}_${datePostfix}`,
output: `phet_${lang.toLowerCase().replace('_', '-')}_all_${datePostfix}`,
date: now,
languages: [lang],
})
Expand Down
2 changes: 1 addition & 1 deletion test/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const targetDir = './dist/'

const now = new Date()
const datePostfix = `${now.getUTCFullYear()}-${(now.getUTCMonth() + 1).toString().padStart(2, '0')}`
const files = [`${targetDir}phet_mul_${datePostfix}.zim`, `${targetDir}phet_${language}_${datePostfix}.zim`]
const files = [`${targetDir}phet_mul_all_${datePostfix}.zim`, `${targetDir}phet_${language}_all_${datePostfix}.zim`]

const options = {
cwd: join(__dirname, '..'),
Expand Down

0 comments on commit cd72316

Please sign in to comment.