5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 14:22:12 +08:00

Update release.go to auto-patch paths

This commit is contained in:
Lea Anthony 2022-08-08 20:18:00 +10:00
parent fb7f84a033
commit 62526a3e2b
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -61,7 +61,15 @@ func main() {
s.ECHO("Removing old version: " + oldestVersion)
s.CD("versioned_docs")
s.RMDIR("version-" + oldestVersion)
s.CD("../versioned_sidebars")
s.CD("version-" + newVersion + "/gettingstarted")
s.REPLACEALL("firstproject.mdx", s.Sub{
"../../src/components/frameworktabs": "../../../src/components/frameworktabs",
})
s.REPLACEALL("installation.mdx", s.Sub{
"../../src/components/tabinstall": "../../../src/components/tabinstall",
})
s.CD("../../../versioned_sidebars")
s.RM("version-" + oldestVersion + "-sidebars.json")
}