@railway/cli 1.7.4 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,6 @@ export const CONFIG = {
33
33
  export const ARCH_MAPPING = {
34
34
  ia32: "386",
35
35
  x64: "amd64",
36
- // Re-add when railwayapp/cli#173 gets merged
37
- // arm: "arm",
38
36
  arm64: "arm64",
39
37
  };
40
38
 
@@ -3,10 +3,19 @@ import * as fs from "fs/promises";
3
3
  import fetch from "node-fetch";
4
4
  import { pipeline } from "stream/promises";
5
5
  import tar from "tar";
6
+ import { execSync } from "child_process";
6
7
 
7
8
  import { ARCH_MAPPING, CONFIG, PLATFORM_MAPPING } from "./config.js";
8
9
 
9
10
  async function install() {
11
+ if (process.platform === "android") {
12
+ console.log("Installing, this may take a few minutes...");
13
+ const cmd =
14
+ "pkg upgrade && pkg install golang git -y && git clone https://github.com/railwayapp/cli.git && cd cli/ && go build -o $PREFIX/bin/railway";
15
+ execSync(cmd, { encoding: "utf-8" });
16
+ console.log("Installation successful!");
17
+ return;
18
+ }
10
19
  const packageJson = await fs.readFile("package.json").then(JSON.parse);
11
20
  let version = packageJson.version;
12
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railway/cli",
3
- "version": "1.7.4",
3
+ "version": "1.8.1",
4
4
  "description": "Develop and deploy code with zero configuration",
5
5
  "type": "module",
6
6
  "author": "Jake Runzer",