pull/5200/head
bunsenstraat 2 months ago
parent 2eab87afe7
commit 73236dfbb7
  1. 1
      apps/remixdesktop/rundist.bash
  2. 24
      apps/remixdesktop/rundist.bash

@ -1 +0,0 @@
rundist_webpack.bash

@ -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 dist -c beta.json"
elif [[ $version == *"alpha"* ]]; then
command="yarn dist -c alpha.json"
elif [[ $version == *"insiders"* ]]; then
command="yarn dist -c insiders.json"
else
command="yarn dist -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