cahnged ttt-ce to ttt_ce due to a syntax conflict, and disabled macos and windows builds

This commit is contained in:
NIMFER 2024-03-26 03:41:43 +01:00
parent 84055c38f4
commit 89a2b7d965
11 changed files with 19 additions and 18 deletions

View file

@ -8,7 +8,8 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
os: [windows-latest, ubuntu-latest, macos-latest] # os: [windows-latest, ubuntu-latest, macos-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View file

@ -17,7 +17,7 @@ on:
# ToDo: adapt names # ToDo: adapt names
env: env:
# used for uploading the app to a GitHub release # used for uploading the app to a GitHub release
GAME_EXECUTABLE_NAME: ttt-ce GAME_EXECUTABLE_NAME: ttt_ce
BUNDLE_PATH: "target/x/release/android/mobile.aab" BUNDLE_PATH: "target/x/release/android/mobile.aab"
PACKAGE_NAME: "com.opencodebox.tttce" PACKAGE_NAME: "com.opencodebox.tttce"
# release track; you can promote a build to "higher" tracks in the play console or publish to a different track directly # release track; you can promote a build to "higher" tracks in the play console or publish to a different track directly

View file

@ -19,7 +19,7 @@ on:
# ToDo: adapt names # ToDo: adapt names
env: env:
# used for uploading the app to a GitHub release # used for uploading the app to a GitHub release
GAME_EXECUTABLE_NAME: ttt-ce GAME_EXECUTABLE_NAME: ttt_ce
XCODE_PROJECT: mobile XCODE_PROJECT: mobile
MOBILE_DIRECTORY: mobile MOBILE_DIRECTORY: mobile

View file

@ -14,7 +14,7 @@ on:
# ToDo: adapt names # ToDo: adapt names
env: env:
# This variable is used to name release output files. # This variable is used to name release output files.
GAME_EXECUTABLE_NAME: ttt-ce GAME_EXECUTABLE_NAME: ttt_ce
GAME_OSX_APP_NAME: TTTCE GAME_OSX_APP_NAME: TTTCE
permissions: permissions:

14
.vscode/launch.json vendored
View file

@ -12,7 +12,7 @@
"command": "nix-shell --run 'cargo run --features dev'", "command": "nix-shell --run 'cargo run --features dev'",
}, },
{ {
"command": "steam-run ./target/debug/ttt-ce", "command": "steam-run ./target/debug/ttt_ce",
"name": "Run compiled (steam-run)", "name": "Run compiled (steam-run)",
"request": "launch", "request": "launch",
"type": "node-terminal" "type": "node-terminal"
@ -24,13 +24,13 @@
"cargo": { "cargo": {
"args": [ "args": [
"build", "build",
"--bin=ttt-ce", "--bin=ttt_ce",
"--package=ttt-ce", "--package=ttt_ce",
"--features", "--features",
"dev" "dev"
], ],
"filter": { "filter": {
"name": "ttt-ce", "name": "ttt_ce",
"kind": "bin" "kind": "bin"
}, },
}, },
@ -55,13 +55,13 @@
"args": [ "args": [
"test", "test",
"--no-run", "--no-run",
"--bin=ttt-ce", "--bin=ttt_ce",
"--package=ttt-ce", "--package=ttt_ce",
"--features", "--features",
"dev" "dev"
], ],
"filter": { "filter": {
"name": "ttt-ce", "name": "ttt_ce",
"kind": "bin" "kind": "bin"
} }
}, },

View file

@ -4,7 +4,7 @@ Template for a Game using the awesome [Bevy engine][bevy] featuring out of the b
# What does this template give you? # What does this template give you?
* small example ["game"](https://niklasei.github.io/ttt-ce_template/) * small example ["game"](https://niklasei.github.io/ttt_ce_template/)
* easy setup for running the web build using [trunk] (`trunk serve`) * easy setup for running the web build using [trunk] (`trunk serve`)
* run the native version with `cargo run` * run the native version with `cargo run`
* workflow for GitHub actions creating releases for Windows, Linux, macOS, and Web (Wasm) ready for distribution * workflow for GitHub actions creating releases for Windows, Linux, macOS, and Web (Wasm) ready for distribution

4
Cargo.lock generated
View file

@ -2751,7 +2751,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"bevy", "bevy",
"cpal", "cpal",
"ttt-ce", "ttt_ce",
] ]
[[package]] [[package]]
@ -4069,7 +4069,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17f77d76d837a7830fe1d4f12b7b4ba4192c1888001c7164257e4bc6d21d96b4" checksum = "17f77d76d837a7830fe1d4f12b7b4ba4192c1888001c7164257e4bc6d21d96b4"
[[package]] [[package]]
name = "ttt-ce" name = "ttt_ce"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"bevy", "bevy",

View file

@ -1,5 +1,5 @@
[package] [package]
name = "ttt-ce" # ToDo name = "ttt_ce" # ToDo
version = "0.1.0" version = "0.1.0"
publish = false publish = false
authors = ["Mikolaj Wojciech 'Nimfer' Gorski"] # ToDo: you are the author ;) authors = ["Mikolaj Wojciech 'Nimfer' Gorski"] # ToDo: you are the author ;)

View file

@ -35,7 +35,7 @@
<!-- Installs the actual files --> <!-- Installs the actual files -->
<ComponentGroup Id="MainComponent" Directory="INSTALLFOLDER"> <ComponentGroup Id="MainComponent" Directory="INSTALLFOLDER">
<Component> <Component>
<File Id="Executable" Source="..\..\..\target\dist\ttt-ce.exe" Vital="true" /> <!-- ToDo this should point to your executable --> <File Id="Executable" Source="..\..\..\target\dist\ttt_ce.exe" Vital="true" /> <!-- ToDo this should point to your executable -->
</Component> </Component>
</ComponentGroup> </ComponentGroup>

View file

@ -9,7 +9,7 @@ name = "mobile"
crate-type = ["staticlib", "cdylib"] crate-type = ["staticlib", "cdylib"]
[dependencies] [dependencies]
ttt-ce = { path = ".." } # ToDo ttt_ce = { path = ".." } # ToDo
bevy = { version = "0.13", default-features = false } bevy = { version = "0.13", default-features = false }
# As long as Kira doesn't expose a feature for this, we need to enable it # As long as Kira doesn't expose a feature for this, we need to enable it

View file

@ -1,6 +1,6 @@
use bevy::prelude::*; use bevy::prelude::*;
use bevy::window::WindowMode; use bevy::window::WindowMode;
use ttt-ce::GamePlugin; // ToDo: Replace ttt-ce with your new crate name. use ttt_ce::GamePlugin; // ToDo: Replace ttt_ce with your new crate name.
#[bevy_main] #[bevy_main]
fn main() { fn main() {