## -----------------------------------------------------------------------------
#| include: false
library(shinyelectron)


## -----------------------------------------------------------------------------
#| eval: false
# install.packages("pak")
# pak::pak("coatless-rpkg/shinyelectron")


## -----------------------------------------------------------------------------
#| eval: false
# library(shinyelectron)
# sitrep_shinyelectron()


## -----------------------------------------------------------------------------
#| eval: false
# install_nodejs()


## -----------------------------------------------------------------------------
#| eval: false
# # List available demos
# available_examples()
# 
# # Export the R single-app demo to your Desktop
# export(
#   appdir = example_app("r"),
#   destdir = "~/Desktop/my-first-app",
#   run_after = TRUE
# )


## -----------------------------------------------------------------------------
#| eval: false
# # R (language autodetected from app.R, shinylive is the default strategy)
# export(
#   appdir = "path/to/my-app",       # directory containing app.R
#   destdir = "my-electron-app",
#   app_name = "My App"
# )
# 
# # Python (language autodetected from app.py)
# export(
#   appdir = "path/to/my-py-app",    # directory containing app.py
#   destdir = "my-py-electron-app",
#   app_name = "My App"
# )


## -----------------------------------------------------------------------------
#| eval: false
# # R Shiny with auto-download (downloads R on first launch)
# export(
#   appdir = "path/to/my-app",
#   destdir = "my-native-app",
#   runtime_strategy = "auto-download"
# )
# 
# # Python Shiny with a bundled runtime (ships Python inside the app)
# export(
#   appdir = "path/to/my-py-app",
#   destdir = "my-bundled-py-app",
#   runtime_strategy = "bundled"
# )


## -----------------------------------------------------------------------------
#| eval: false
# export(
#   appdir = "my-app",
#   destdir = "my-electron-app",
#   platform = c("mac", "win", "linux"),
#   arch = c("x64", "arm64"),
#   overwrite = TRUE
# )


## -----------------------------------------------------------------------------
#| eval: false
# export(
#   appdir = "my-app",
#   destdir = "my-electron-app",
#   icon = "icon.icns"
# )


## -----------------------------------------------------------------------------
#| eval: false
# init_config("my-app")


## -----------------------------------------------------------------------------
#| eval: false
# export(appdir = "my-app", destdir = "output")

