mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 18:29:53 +08:00
docs: improve documentation (#2686)
* docs: fix changelog format * fix: fix release tools * chore: set sync translated documents as a scheduled task
This commit is contained in:
parent
ec19458c1b
commit
37e43dabc0
@ -2,6 +2,8 @@ name: Sync Translations
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-translated-documents:
|
sync-translated-documents:
|
||||||
|
@ -2,13 +2,14 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/samber/lo"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/samber/lo"
|
||||||
|
|
||||||
"github.com/wailsapp/wails/v2/internal/s"
|
"github.com/wailsapp/wails/v2/internal/s"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ func main() {
|
|||||||
// Get today's date in YYYY-MM-DD format
|
// Get today's date in YYYY-MM-DD format
|
||||||
today := time.Now().Format("2006-01-02")
|
today := time.Now().Format("2006-01-02")
|
||||||
// Add the new version to the top of the changelog
|
// Add the new version to the top of the changelog
|
||||||
newChangelog := changelogSplit[0] + "## [Unreleased]\n\n## [" + newVersion + "] - " + today + changelogSplit[1]
|
newChangelog := changelogSplit[0] + "## [Unreleased]\n\n## " + newVersion + " - " + today + changelogSplit[1]
|
||||||
// Write the changelog back
|
// Write the changelog back
|
||||||
err = os.WriteFile("src/pages/changelog.mdx", []byte(newChangelog), 0755)
|
err = os.WriteFile("src/pages/changelog.mdx", []byte(newChangelog), 0755)
|
||||||
checkError(err)
|
checkError(err)
|
||||||
|
@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Avoid app crashing when the Linux GTK key is empty by @aminya in [PR](https://github.com/wailsapp/wails/pull/2672)
|
- Avoid app crashing when the Linux GTK key is empty by @aminya in [PR](https://github.com/wailsapp/wails/pull/2672)
|
||||||
|
|
||||||
## [v2.5.1] - 2023-05-16
|
## v2.5.1 - 2023-05-16
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user