Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .release-meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tag": "beta",
"version": "0.1.0-beta.1"
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

## Table of Contents

- Overview
- Installation
- Overview
- Installation

## Overview

Expand All @@ -20,8 +20,8 @@ This version adds support for Universal app for both Android and iOS. Please che

**System Requirements**

- Node version 20.4.0 or later
- Compatible with **macOS** and **Linux**
- Node version 20.4.0 or later
- Compatible with **macOS** and **Linux**

**Automatic Installation**

Expand Down
9 changes: 8 additions & 1 deletion bin/catalyst.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const validCommands = [
"serve",
"devBuild",
"devServe",
"plugin",
"plugins",
"buildApp",
"buildApp:ios",
"buildApp:android",
Expand Down Expand Up @@ -67,11 +69,14 @@ const scriptIndex = args.findIndex(
x === "serve" ||
x === "devBuild" ||
x === "devServe" ||
x === "plugin" ||
x === "plugins" ||
isPlatformCommand(x, "buildApp") ||
isPlatformCommand(x, "setupEmulator")
)
const script = scriptIndex === -1 ? args[0] : args[scriptIndex]
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : []
const resolvedScript = script === "plugin" ? "plugins" : script

if (validCommands.includes(script)) {
// Handle platform-specific or combined commands
Expand All @@ -90,7 +95,9 @@ if (validCommands.includes(script)) {
// Original commands
const result = spawnSync(
process.execPath,
nodeArgs.concat(require.resolve("../dist/scripts/" + script)).concat(args.slice(scriptIndex + 1)),
nodeArgs
.concat(require.resolve("../dist/scripts/" + resolvedScript))
.concat(args.slice(scriptIndex + 1)),
{ stdio: "inherit" }
)
handleProcessResult(result)
Expand Down
Loading
Loading