Skip to content

Commit

Permalink
Merge pull request #17 from edgenai/fix/release-logs
Browse files Browse the repository at this point in the history
Moved Windows terminal to feature
  • Loading branch information
pedro-devv authored Feb 5, 2024
2 parents 9d26b6f + 2df0897 commit 68470e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "build"
on:
push:
branches: ["*"]
branches: [ "*" ]
pull_request:
branches: ["*"]
branches: [ "*" ]

# This is the example from the readme.
# On each push to the `main` branch it will create or update a GitHub build, build your app, and upload the artifacts to the build.
Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
platform: [ macos-latest, ubuntu-20.04, windows-latest ]

runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -59,6 +59,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
RUSTFLAGS: "--cfg tokio_unstable"
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__"
Expand Down
6 changes: 1 addition & 5 deletions crates/edgen_server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ fn serve(args: &cli::Serve) -> EdgenResult {

#[tokio::main]
async fn start_server(args: &cli::Serve) -> EdgenResult {
// The console is disabled in release builds, so there is no need to initialise this
#[cfg(debug_assertions)]
{
console_subscriber::init();
}
console_subscriber::init();

SETTINGS
.write()
Expand Down
5 changes: 3 additions & 2 deletions edgen/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ serde_json = "1.0"
tokio = { workspace = true, features = ["full", "tracing"] }
tracing = { workspace = true }
opener = "0.6.1"
edgen_server = { path = "../../crates/edgen_server"}
edgen_core = { path = "../../crates/edgen_core"}
edgen_server = { path = "../../crates/edgen_server" }
edgen_core = { path = "../../crates/edgen_core" }

[features]
no_gui = []
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]
enable-windows-terminal = []
6 changes: 4 additions & 2 deletions edgen/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
* limitations under the License.
*/

// Tauri - prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#![cfg_attr(
not(feature = "enable-windows-terminal"),
windows_subsystem = "windows"
)]

#[cfg(not(feature = "no_gui"))]
mod gui;
Expand Down

0 comments on commit 68470e6

Please sign in to comment.