Skip to content

Commit edcb4ab

Browse files
authored
Merge pull request #101 from go-flutter-desktop/feature/embed-assets
Embed assets
2 parents ba03e2a + 39bbd87 commit edcb4ab

File tree

3 files changed

+353
-0
lines changed

3 files changed

+353
-0
lines changed

assets/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# assets
2+
3+
This directory contains templates and config files that hover uses to initialize apps and packaging structures. When modifying these assets, you need to update the generated code so that the assets are included in the Go build process.
4+
5+
## Installing rice
6+
7+
Install the rice tool by running `(cd $HOME && GO111MODULE=on go get -u -a github.com/GeertJohan/go.rice/rice)`.
8+
9+
## Updating code
10+
11+
Run `go generate ./...` in the repository to update the generated code.

internal/fileutils/assets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:generate rice embed
12
package fileutils
23

34
import (

0 commit comments

Comments
 (0)