mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-18 00:19:58 +01:00
Update release.go to auto-patch paths
This commit is contained in:
parent
fb7f84a033
commit
62526a3e2b
1 changed files with 9 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue