mirror of
https://github.com/taigrr/wails.git
synced 2026-04-09 00:21:35 -07:00
Compare commits
2 Commits
v2.0.0-alp
...
v2.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f77729fc0b | ||
|
|
2a8ce96830 |
@@ -1,3 +1,3 @@
|
||||
package main
|
||||
|
||||
var version = "v2.0.0-alpha.5"
|
||||
var version = "v2.0.0-alpha.6"
|
||||
|
||||
@@ -47,12 +47,6 @@ func (d *DesktopBuilder) BuildAssets(options *Options) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Build static assets
|
||||
err = d.buildCustomAssets(d.projectData)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ The structure is:
|
||||
|
||||
* dialog - Icons for dialogs
|
||||
* tray - Icons for the system tray
|
||||
* custom - A place for assets you wish to bundle in the application
|
||||
* mac - MacOS specific files
|
||||
* linux - Linux specific files
|
||||
* windows - Windows specific files
|
||||
@@ -48,16 +47,6 @@ Example:
|
||||
|
||||
* `mypic.png` - May be referenced using `runtime.Tray.SetIcon("mypic")`
|
||||
|
||||
## Custom
|
||||
|
||||
Any file in this directory will be embedded into the app using the Wails asset bundler.
|
||||
Assets can be retrieved using the following methods:
|
||||
|
||||
* `wails.Assets().Read(filename string) ([]byte, error)`
|
||||
* `wails.Assets().String(filename string) (string, error)`
|
||||
|
||||
The filename should include the path to the file relative to the `custom` directory.
|
||||
|
||||
## Mac
|
||||
|
||||
The `mac` directory holds files specific to Mac builds, such as `info.plist`. These may be edited and used as part of the build.
|
||||
|
||||
Reference in New Issue
Block a user