Skip to content

Commit

Permalink
💄 Add bundle assets for the example app
Browse files Browse the repository at this point in the history
The example application currently has no assets, not even an icon that
can be used. This changes it to now actually use a specified icon file
in the project's `Cargo.toml` and leverages `cargo-bundle` in the
process.

Very basic icons are checked in as well for this.
  • Loading branch information
bitwizeshift committed Dec 16, 2023
1 parent b1fc91b commit a3e13e4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
[package]
name = "example"
description = "A small demo using the alloy-rs engine"
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
version = "0.1.0"
authors = [
"Matthew Rodusek <[email protected]>"
]
license = "MIT OR Apache-2"
categories = []
keywords = []
keywords = ["example", "demo"]
repository.workspace = true
edition.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -22,3 +24,26 @@ toast = { path = "../frameworks/toast" }

[build-dependencies]
build = { path = "../frameworks/build" }

[package.metadata.bundle]
name = "AlloyExample"
identifier = "com.rodusek.alloy.example"
icon = ["assets/icon/32x32.png", "assets/icon/128x128.png", "assets/icon/[email protected]"]
version = "1.0.0"
resources = ["assets", "images/**/*.png", "secrets/public_key.txt"]
copyright = "Copyright (c) Matthew Rodusek 2023. All rights reserved."
category = "Developer Tool"
short_description = "An example alloy-rs application."
long_description = """
An example alloy-rs application illustrating some of the features of the
engine.
"""
osx_frameworks = [
"CoreAudio",
"AudioToolbox",
"CoreFoundation",
"Cocoa",
"IOKit",
"OpenGL",
]
osx_url_schemes = ["com.rodusek.alloy.example"]
Binary file added example/assets/icon/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/assets/icon/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/assets/icon/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a3e13e4

Please sign in to comment.