Skip to content

Commit

Permalink
微修正
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Feb 18, 2024
1 parent 22b86b4 commit 3e99fed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
cd ./generate/scripts
chmod +x ./generator.main.kts
./generator.main.kts
tree ../../tmp
- name: Generate ZIP
run: |
Expand Down
5 changes: 3 additions & 2 deletions generate/scripts/generator.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,16 @@ runBlocking {
zipIn.use {
var entry = it.nextEntry

Thread.sleep(1000)

while (entry != null) {

// 今のところモデルのみ展開
if (entry.name.startsWith("assets/minecraft/models/")) {
val path = Paths.get(mcResFolder.path, entry.name)
syncMkdir(path.parent.toFile())
Files.write(path, it.readAllBytes())
println(entry.name)
}

entry = it.nextEntry
Expand All @@ -221,8 +224,6 @@ runBlocking {
tmpDirJob.join()
}



val preProcTime = stopWatch.elapsed(TimeUnit.MILLISECONDS)
println("事前処理完了\t経過時間: ${preProcTime}ms")

Expand Down

0 comments on commit 3e99fed

Please sign in to comment.