pull/5200/head
filip mertens 2 months ago
parent c23d7d4c01
commit e901cc1726
  1. 3
      apps/remixdesktop/package.json
  2. 8
      apps/remixdesktop/rundist.bash
  3. 24
      apps/remixdesktop/rundist_esbuild.bash

@ -1,7 +1,7 @@
{ {
"name": "remixdesktop", "name": "remixdesktop",
"version": "1.0.8-insiders", "version": "1.0.8-insiders",
"main": "build/main.js", "main": "build/apps/remixdesktop/src/main.js",
"license": "MIT", "license": "MIT",
"type": "commonjs", "type": "commonjs",
"description": "Remix IDE Desktop", "description": "Remix IDE Desktop",
@ -25,6 +25,7 @@
"start:dev": "yarn webpack --config webpack.config.js && electron --inspect=5858 .", "start:dev": "yarn webpack --config webpack.config.js && electron --inspect=5858 .",
"start:production": "cross-env NODE_ENV=production yarn webpack --config webpack.config.js && electron .", "start:production": "cross-env NODE_ENV=production yarn webpack --config webpack.config.js && electron .",
"dist": "cross-env NODE_ENV=production yarn webpack --config webpack.config.js && electron-builder -p never", "dist": "cross-env NODE_ENV=production yarn webpack --config webpack.config.js && electron-builder -p never",
"tscbuild": "tsc && cp -R node_modules/yarn build/tools/ && electron-builder -p never",
"esbuild": "cross-env NODE_ENV=production node esbuild.js && electron-builder -p never", "esbuild": "cross-env NODE_ENV=production node esbuild.js && electron-builder -p never",
"installRipGrepMacOXx64": "rm -rf node_modules/@vscode/ripgrep/bin && npm_config_arch=x64 node node_modules/@vscode/ripgrep/lib/postinstall.js", "installRipGrepMacOXx64": "rm -rf node_modules/@vscode/ripgrep/bin && npm_config_arch=x64 node node_modules/@vscode/ripgrep/lib/postinstall.js",
"installRipGrepMacOXarm64": "rm -rf node_modules/@vscode/ripgrep/bin && npm_config_arch=arm64 node node_modules/@vscode/ripgrep/lib/postinstall.js", "installRipGrepMacOXarm64": "rm -rf node_modules/@vscode/ripgrep/bin && npm_config_arch=arm64 node node_modules/@vscode/ripgrep/lib/postinstall.js",

@ -5,13 +5,13 @@ version=$(awk -F'"' '/"version":/ {print $4}' package.json)
# Determine the command to run based on the version # Determine the command to run based on the version
if [[ $version == *"beta"* ]]; then if [[ $version == *"beta"* ]]; then
command="yarn esbuild -c beta.json" command="yarn tscbuild -c beta.json"
elif [[ $version == *"alpha"* ]]; then elif [[ $version == *"alpha"* ]]; then
command="yarn esbuild -c alpha.json" command="yarn tscbuild -c alpha.json"
elif [[ $version == *"insiders"* ]]; then elif [[ $version == *"insiders"* ]]; then
command="yarn esbuild -c insiders.json" command="yarn tscbuild -c insiders.json"
else else
command="yarn esbuild -c latest.json" command="yarn tscbuild -c latest.json"
fi fi
# Append any arguments passed in CLI # Append any arguments passed in CLI

@ -0,0 +1,24 @@
#!/bin/bash
# Read the version from package.json
version=$(awk -F'"' '/"version":/ {print $4}' package.json)
# Determine the command to run based on the version
if [[ $version == *"beta"* ]]; then
command="yarn esbuild -c beta.json"
elif [[ $version == *"alpha"* ]]; then
command="yarn esbuild -c alpha.json"
elif [[ $version == *"insiders"* ]]; then
command="yarn esbuild -c insiders.json"
else
command="yarn esbuild -c latest.json"
fi
# Append any arguments passed in CLI
for arg in "$@"; do
command+=" $arg"
done
# Print and run the command
echo "Running command: $command"
$command
Loading…
Cancel
Save