Skip to content

Commit

Permalink
fix: update build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Jan 6, 2024
1 parent c17cb5c commit ac71292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func main() {
builder.TaskForSimpleIcons("internal/resources/simpleicon")
builder.TaskForGuideAssets("embed/assets/vendor/guide-assets", "internal/pages/guide/guide-assets")
builder.TaskForEditorAssets("embed/assets/vendor/editor-assets", "internal/pages/editor/editor-assets")
builder.TaskForStyles("config/state/style.go")
builder.TaskForStyles("config/define/style.go")
builder.TaskForFavicon("embed/assets/favicon.ico", "internal/resources/assets/favicon.ico")
builder.TaskForTemplates("embed/templates", "internal/resources/templates/html")
}
2 changes: 1 addition & 1 deletion build/builder/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TaskForStyles(gofile string) {
}

func initInlineStyle(data string, gofile string) {
content := "package FlareState\nconst PAGE_INLINE_STYLE = " + `"` + strings.Replace(data, "\"", "\\\"", -1) + `"`
content := "package FlareDefine\nconst PAGE_INLINE_STYLE = " + `"` + strings.Replace(data, "\"", "\\\"", -1) + `"`
fmtContent, err := format.Source([]byte(content))
if err != nil {
fmt.Println("序列化内容失败", err)
Expand Down

0 comments on commit ac71292

Please sign in to comment.