Skip to content

Commit

Permalink
fix: upload script module not found
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Mar 6, 2023
1 parent 2201fb0 commit 15dbef4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist/
/build/FilesToInstall/
/build/Output/
/build/NiuNiuCaptureElectronDemo/
/build/SetupScripts/skinpwd.nsh
out/
/tmp
/out-tsc
Expand Down
5 changes: 3 additions & 2 deletions scripts/deployWindows.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ conn
.end(
[
'set TERM=msys',
`set GITHUB_TOKEN=${process.env.GITHUB_TOKEN}`,
`export GITHUB_TOKEN=${process.env.GITHUB_TOKEN}`,
`cd d:/git/postcat`,
'git reset --hard',
'git checkout build/windows',
...Array.from({ length: 5 }).map(_ => 'git pull'),
'nvm install 16.19.1',
'nvm use 16.19.1',
`echo ${process.env.QINIU_ENV_JS} > qiniu_env.js`,
'yarn install',
'yarn release',
'nvm use 12.22.10',
'echo Windows打包发布完成!'
'echo Windows 打包发布完成!'
].join('\r\n')
);
});
Expand Down
2 changes: 1 addition & 1 deletion scripts/upload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const qiniu = require('qiniu');
const { promises } = require('fs');
const { AK, SK, bucket } = require('./qiniu_env.js');
const { AK, SK, bucket } = require('../qiniu_env.js');
const package = require('./package.json');

qiniu.conf.ACCESS_KEY = AK;
Expand Down

0 comments on commit 15dbef4

Please sign in to comment.