同步现在的代码

This commit is contained in:
linghutianhao
2026-08-14 15:28:57 +08:00
parent 5eab53a777
commit 8b6b8e7ab7
66 changed files with 7248 additions and 1248 deletions
+14
View File
@@ -0,0 +1,14 @@
const { exec } = require('child_process');
const fs = require('fs');
const url = process.argv[2];
const filePath = decodeURIComponent(url)
.replace(/^typora:\/\/file\//, '')
.replace(/\//g, '\\');
//fs.writeFileSync(__dirname + '/typora-debug.log',`url: ${url}\nfilePath: ${filePath}\n`, 'utf8');
exec('"D:\\Program Files\\Typora\\Typora.exe" "' + filePath + '"', (err, stdout, stderr) => {
if (err) {
//fs.appendFileSync(__dirname + '/typora-debug.log', 'err: ' + err.message + '\n');
}
});