Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Mar 12, 2024
1 parent e451884 commit 662b019
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,20 @@ jobs:
cp -r i18n/ result/
mv result MajsoulPaipuAnalyzer-macos-x64
- name: archive
if: github.event_name != 'workflow_dispatch'
run: |
brew install p7zip
7z a MajsoulPaipuAnalyzer-macos-x64.7z MajsoulPaipuAnalyzer-macos-x64 -m0=LZMA2 -mmt
- uses: actions/upload-artifact@v2
if: github.event_name != 'workflow_dispatch'
with:
name: MajsoulPaipuAnalyzer-macos-x64.7z
path: MajsoulPaipuAnalyzer-macos-x64.7z
- uses: actions/upload-artifact@v2
if: github.event_name == 'workflow_dispatch'
with:
name: MajsoulPaipuAnalyzer-macos-x64
path: MajsoulPaipuAnalyzer-macos-x64
- uses: actions/upload-artifact@v2
with:
name: PaipuAnalyzer
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ const ready = () => {
//browseWindow.maximize();
function readgamedata(userid, paipugamedata, callback){
let root = path(dataPath, 'majsoul', userid.toString());
if (!fs.existsSync(dataPath)) fs.mkdirSync(dataPath);
if (!fs.existsSync(dataPath)) fs.mkdirSync(dataPath, { recursive: true });
if (!fs.existsSync(path(dataPath, 'majsoul'))) fs.mkdirSync(path(dataPath, 'majsoul'));
if (!fs.existsSync(root)) fs.mkdirSync(root);
let ppp = path(root, 'raw');
Expand Down

0 comments on commit 662b019

Please sign in to comment.