Skip to content

Support cargo-generate #137

@hlorus

Description

@hlorus

Ideally the template should work with the new bevy cli tool but when running the following command it complains that the template isn't using the correct syntax to support automatic substitution.

Command:
bevy new --template="https://github.com/NiklasEi/bevy_game_template" test-template

Output:

Error: Substitution skipped, found invalid syntax in
	.github/workflows/ci.yml
	.github/workflows/release.yaml
	assets/audio/flying.ogg
	assets/textures/bevy.png
	assets/textures/github.png
	build/android/res/mipmap-mdpi/icon.png
	build/icon_1024x1024.png
	build/macos/AppIcon.iconset/icon_128x128.png
	build/macos/AppIcon.iconset/[email protected]
	build/macos/AppIcon.iconset/icon_16x16.png
	build/macos/AppIcon.iconset/[email protected]
	build/macos/AppIcon.iconset/icon_256x256.png
	build/macos/AppIcon.iconset/[email protected]
	build/macos/AppIcon.iconset/icon_32x32.png
	build/macos/AppIcon.iconset/[email protected]
	build/macos/AppIcon.iconset/icon_512x512.png
	build/macos/AppIcon.iconset/[email protected]
	build/macos/src/Game.app/Contents/Resources/AppIcon.icns
	build/windows/icon.ico
	mobile/ios-src/Assets.xcassets/AppIcon.appiconset/icon_1024x1024.png

Consider adding these files to a `cargo-generate.toml` in the template repo to skip substitution on these files.

Learn more: https://github.com/cargo-generate/cargo-generate#include--exclude.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions