Skip to content

Commit

Permalink
Update data
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Oct 12, 2023
1 parent e42f9d4 commit 5dc51b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ node_modules/
dist/
pnpm-lock.yaml
*_pb.*
data.bin
data.txt
1 change: 1 addition & 0 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function main() {
".jpg": "file",
".otf": "file",
".bin": "file",
".txt": "file",
},
alias,
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"init": "wget https://github.com/qiuxiang/ky-genshin-map/files/12854777/data.tar.gz && tar xf data.tar.gz && mv dist/data* src/ && ln index.html dist/",
"init": "wget https://github.com/qiuxiang/ky-genshin-map/files/12880123/data.tar.gz && tar xf data.tar.gz && mv dist/data* src/ && ln index.html dist/",
"uno": "unocss -o dist/uno.css 'src/**/*.tsx' index.html",
"build": "esbuild build.ts --format=cjs | node",
"dev": "esbuild build.ts --format=cjs | node - dev"
Expand Down
2 changes: 1 addition & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function init() {
fetch(
location.protocol == "http:"
? "http://ky-genshin-map.test.upcdn.net/data.txt"
: require("./data.bin")
: require("./data.txt")
),
initCanvaskit({
locateFile() {
Expand Down

0 comments on commit 5dc51b4

Please sign in to comment.