mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 05:00:31 +08:00
Update release.go to auto-patch paths
This commit is contained in:
parent
fb7f84a033
commit
62526a3e2b
@ -61,7 +61,15 @@ func main() {
|
|||||||
s.ECHO("Removing old version: " + oldestVersion)
|
s.ECHO("Removing old version: " + oldestVersion)
|
||||||
s.CD("versioned_docs")
|
s.CD("versioned_docs")
|
||||||
s.RMDIR("version-" + oldestVersion)
|
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")
|
s.RM("version-" + oldestVersion + "-sidebars.json")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user