Commit a10696ed authored by guxukai's avatar guxukai

fix: windows打不开压缩文件

parent 39689687
...@@ -263,7 +263,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error, ...@@ -263,7 +263,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error,
// pick that up via the 'fileAdded' event from the files module. // pick that up via the 'fileAdded' event from the files module.
async function iterator (files) { async function iterator (files) {
await Promise.all(Array.from(files).map(async (file: File) => { await Promise.all(Array.from(files).map(async (file: File) => {
alert('fileType:::' + file.type) console.error('fileType:::' + file.type)
// 'application/x-zip-compressed' win // 'application/x-zip-compressed' win
// 'application/zip' mac // 'application/zip' mac
if ( if (
......
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
"make-mock-compiler": "node apps/remix-ide/ci/makeMockCompiler.js", "make-mock-compiler": "node apps/remix-ide/ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false", "minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",
"preinstall": "sudo npm install -g node-gyp --allow-root --unsafe-perm", "preinstall": "sudo npm install -g node-gyp --allow-root --unsafe-perm",
"build:dev": "NODE_ENV=production node --max-old-space-size=4096 node_modules/@nrwl/cli/bin/nx.js build remix-ide --buildLibsFromSource --prod --baseHref=/ide/ --skip-nx-cache --parallel=3", "build:dev": "NODE_ENV=production node --max-old-space-size=4096 node_modules/@nrwl/cli/bin/nx.js build remix-ide --buildLibsFromSource --baseHref=/ide/ --skip-nx-cache --parallel=3",
"build:test": "NODE_ENV=production node --max-old-space-size=4096 node_modules/@nrwl/cli/bin/nx.js build remix-ide --buildLibsFromSource --skip-nx-cache --parallel=3",
"serve:dev": "npx http-server ./dist/apps/remix-ide", "serve:dev": "npx http-server ./dist/apps/remix-ide",
"deploy:dev": "./deploy.sh 172.22.17.165", "deploy:dev": "./deploy.sh 172.22.17.165",
"analyze": "webpack-bundle-analyzer dist/apps/remix-ide/stats.json", "analyze": "webpack-bundle-analyzer dist/apps/remix-ide/stats.json",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment