-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Joplin support * fix: remove bottom-lines of h1, h2 * fix: fix typora support * chore: dev-build for pull request * revert files in Supplemental Co-authored-by: RalXYZ <[email protected]>
- Loading branch information
1 parent
e10f315
commit f9ef60d
Showing
4 changed files
with
124 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
push: | ||
branches: | ||
- dev** | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
compile: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# this file will be copied into target directory | ||
|
||
Add-Type -AssemblyName PresentationFramework | ||
|
||
$dir="$env:USERPROFILE\.config\joplin-desktop" | ||
|
||
Write-Output "正在寻找 Joplin 主题文件夹 $dir" | ||
If (Test-Path -Path $dir -PathType Container) { | ||
Write-Output "已找到该文件夹" | ||
} Else { | ||
$MessageBody = "未找到 Joplin 主题文件夹,请先安装 Joplin" | ||
$ButtonType = [System.Windows.MessageBoxButton]::OK | ||
$MessageIcon = [System.Windows.MessageBoxImage]::Error | ||
$MessageTitle = "安装失败" | ||
Write-Error $MessageBody | ||
[System.Windows.MessageBox]::Show($MessageBody, $MessageTitle, $ButtonType, $MessageIcon) | ||
Throw $MessageBody | ||
} | ||
|
||
Try { | ||
Copy-Item -Path ".\target\latex.css" -Destination "$dir\userstyle.css" -Recurse -Force -ErrorAction Stop | ||
} Catch { | ||
$MessageBody = $_.Exception.Message | ||
$ButtonType = [System.Windows.MessageBoxButton]::OK | ||
$MessageIcon = [System.Windows.MessageBoxImage]::Error | ||
$MessageTitle = "安装失败" | ||
Write-Error $MessageTitle | ||
[System.Windows.MessageBox]::Show($MessageBody, $MessageTitle, $ButtonType, $MessageIcon) | ||
Throw $MessageBody | ||
} | ||
|
||
$MessageBody = "主题文件已安装成功" | ||
$ButtonType = [System.Windows.MessageBoxButton]::OK | ||
$MessageIcon = [System.Windows.MessageBoxImage]::Information | ||
$MessageTitle = "安装成功" | ||
Write-Output $MessageTitle | ||
[System.Windows.MessageBox]::Show($MessageBody, $MessageTitle, $ButtonType, $MessageIcon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters