TheDesk 21.2.2 (Mayu)

This commit is contained in:
cutls 2020-09-09 22:04:24 +09:00
parent ccc44ca769
commit 81c476c1bb
3 changed files with 8 additions and 7 deletions

View File

@ -44,7 +44,7 @@ function css(mainWindow) {
})
ipc.on('theme-json-request', function (e, arg) {
try {
var themecss = join('./source/themes', arg)
var themecss = join(app.getAppPath(), '/source/themes', arg)
var raw = fs.readFileSync(themecss, 'utf8')
var json = JSON5.parse(raw)
} catch {
@ -56,7 +56,7 @@ function css(mainWindow) {
})
ipc.on('theme-css-request', function (e, arg) {
try {
var themecss = join('./source/themes', arg)
var themecss = join(app.getAppPath(), '/source/themes', arg)
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'))
} catch {
var themecss = join(app.getPath("userData"), arg)
@ -227,10 +227,10 @@ function css(mainWindow) {
return css
}
ipc.on('theme-json-list', function (e, arg) {
var files1 = fs.readdirSync('./source/themes')
var files1 = fs.readdirSync(join(app.getAppPath(), '/source/themes'))
var file1List = files1.filter(function (file) {
if (file.match(/\.thedesktheme$/)) {
var tfile = join('./source/themes', file)
var tfile = join(app.getAppPath(), '/source/themes', file)
return fs.statSync(tfile).isFile() && /.*\.thedesktheme$/.test(tfile)
} else {
return null
@ -238,7 +238,7 @@ function css(mainWindow) {
})
var themes = [];
for (var i = 0; i < file1List.length; i++) {
var themecss = join('./source/themes', file1List[i]);
var themecss = join(app.getAppPath(), '/source/themes', file1List[i]);
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'));
let compat = true
if (json.version) compat = false

View File

@ -1,6 +1,6 @@
{
"name": "thedesk",
"version": "21.2.1",
"version": "21.2.2",
"codename": "Mayu",
"description": "TheDesk is a Mastodon client for PC.",
"repository": "https://github.com/cutls/TheDesk",

View File

@ -1123,12 +1123,13 @@
<a href="https://thedesk.top" target="_blank">HP</a><br />
<a href="https://github.com/cutls/TheDesk" target="_blank">GitHub</a><br />
<br />
<div id="release-21-2-1_Mayu" class="release-do" style="display:none; ">
<div id="release-21-2-2_Mayu" class="release-do" style="display:none; ">
<br />
<a href="https://ja.mstdn.wiki/TheDesk" target="_blank">機能一覧</a><br />
Pixiv
FanboxやPatreonでは支援者様限定で様々なTheDeskに関する記事をご覧いただけます。最低月一更新。<br />
困ったときは、<a href="https://docs.thedesk.top">TheDesk Docs</a>をご覧ください。
<h5>Release Note 21.2.2 (Mayu)</h5>
<h5>Release Note 21.2.1 (Mayu)</h5>
<h5>Release Note 21.2.0 (Mayu)</h5>
<!--上のdivのidも変えてね-->