diff --git a/.idea/artifacts/create_compose_app_main_jar.xml b/.idea/artifacts/create_compose_app_main_jar.xml
index e28b4a0..57dd72b 100644
--- a/.idea/artifacts/create_compose_app_main_jar.xml
+++ b/.idea/artifacts/create_compose_app_main_jar.xml
@@ -1,17 +1,19 @@
$PROJECT_DIR$/out/artifacts/create_compose_app_main_jar
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
new file mode 100644
index 0000000..4515aa3
--- /dev/null
+++ b/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF
index ce09a1a..e8ffcd1 100644
--- a/META-INF/MANIFEST.MF
+++ b/META-INF/MANIFEST.MF
@@ -1,3 +1,6 @@
Manifest-Version: 1.0
Main-Class: com.theapache64.createcomposeapp.MainKt
+Class-Path: annotations-13.0.jar kotlin-stdlib-common-1.6.10.jar kotlin-
+ stdlib-jdk8-1.6.10.jar kotlin-stdlib-jdk7-1.6.10.jar kotlin-stdlib-1.6.
+ 10.jar
diff --git a/package.json b/package.json
index 3feda09..4179f3c 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"main": "index.js",
"preferGlobal": true,
"repository": "https://github.com/theapache64/create-compose-app",
- "version": "2022.8.29",
+ "version": "2022.12.19",
"jdeploy": {},
"dependencies": {
"shelljs": "0.8.4"
diff --git a/src/main/kotlin/com/theapache64/createcomposeapp/Main.kt b/src/main/kotlin/com/theapache64/createcomposeapp/Main.kt
index 4e72c82..bd28e71 100644
--- a/src/main/kotlin/com/theapache64/createcomposeapp/Main.kt
+++ b/src/main/kotlin/com/theapache64/createcomposeapp/Main.kt
@@ -10,7 +10,7 @@ import kotlin.io.path.Path
import kotlin.io.path.div
private const val IS_DEBUG = false
-private const val VERSION = "2022.8.29"
+private const val VERSION = "2022.12.19"
enum class Platform(val title: String) {
Android("🤖 Android"),
@@ -19,6 +19,7 @@ enum class Platform(val title: String) {
Wasm("🌐 Wasm"),
ChromeExt("🔌 Chrome extension"),
DesktopGame("🎮 Desktop (game)"),
+ Terminal("⌨️ Terminal")
}
@@ -51,9 +52,9 @@ fun main(args: Array) {
Platform.Wasm -> createComposeWasmApp()
Platform.ChromeExt -> createChromeExtensionApp()
Platform.DesktopGame -> createDesktopGameApp()
+ Platform.Terminal -> createTerminalApp()
}
}
-
fun createAndroidApp() {
val corvette = Corvette(
githubRepoUrl = "https://github.com/theapache64/compose-android-template",
@@ -174,4 +175,23 @@ private fun createDesktopGameApp() {
corvette.start(replaceMap)
println(Color.YELLOW, "Run `./gradlew run` from project root to run the game")
+}
+
+private fun createTerminalApp() {
+ val corvette = Corvette(
+ githubRepoUrl = "https://github.com/theapache64/compose-terminal-template",
+ isDebug = IS_DEBUG,
+ modules = arrayOf("src"),
+ srcDirs = arrayOf("main"),
+ srcPackagePath = Path("com") / "myterminal"
+ )
+
+ val replaceMap = mapOf(
+ "rootProject.name = \"compose-terminal-template\"" to "rootProject.name = \"${corvette.projectDirName}\"", // settings.gradle.kt
+ "mainClass.set(\"com.myterminal.app.AppKt\")" to "mainClass.set(\"${corvette.packageName}.app.AppKt\")",
+ "com.myterminal" to corvette.packageName, // app kt files
+ )
+
+ corvette.start(replaceMap)
+ println(Color.YELLOW, "Run `./gradlew run` from project root to run the app")
}
\ No newline at end of file