mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
test(ci): [CI-01] cover installed Danmuku and native Mask combinations
This commit is contained in:
1 parent
54169fdca1
commit
92b04d75c0
27 files changed
+8768
-72
No files matched your search
@@ -11,6 +11,7 @@ import { ensureArchive, hash, readMember } from '../../refactor/scripts/releases
|
||||
import { performanceHtml, performanceScript } from '../../scripts/performance-fixture.mjs'
|
||||
import { getEntryFile } from '../../scripts/projects.js'
|
||||
import { getGlobalName, getViteBuildConfig } from '../../scripts/utils.js'
|
||||
import { danmukuMaskAssets } from '../helpers/danmuku-mask-assets.js'
|
||||
import { jassubAssets } from '../helpers/jassub-assets.js'
|
||||
import { skippableVast } from './vast-fixture.mjs'
|
||||
|
||||
@@ -29,6 +30,10 @@ function add(route, bytes, source) {
|
||||
// An explicit artifact map takes precedence over source builds and never falls back.
|
||||
const mapFile = process.env.ARTPLAYER_BROWSER_ARTIFACTS
|
||||
const overrides = mapFile ? JSON.parse(fs.readFileSync(mapFile, 'utf8')) : {}
|
||||
if (Object.hasOwn(overrides, 'artplayer-plugin-danmuku-mask')) {
|
||||
for (const resource of danmukuMaskAssets(workspace))
|
||||
add(resource.route, resource.bytes, resource.source)
|
||||
}
|
||||
if (Object.hasOwn(overrides, 'artplayer-plugin-jassub')) {
|
||||
for (const resource of jassubAssets(workspace, mapFile))
|
||||
add(resource.route, resource.bytes, resource.source)
|
||||
|
||||
Reference in new issue
Block a user