pull/5335/head
bunsenstraat 4 weeks ago
parent 38b089c934
commit eee24641da
  1. 2
      .circleci/config.yml
  2. 21
      apps/remixdesktop/rundist.bash
  3. 60
      apps/remixdesktop/test_only.json

@ -132,7 +132,7 @@ jobs:
yarn add node-pty
yarn --ignore-optional
yarn add @remix-project/remix-ws-templates
./rundist.bash
./rundist.bash test_only
- run:
name: "Run tests"
command: |

@ -3,7 +3,21 @@
# Read the version from package.json
version=$(awk -F'"' '/"version":/ {print $4}' package.json)
# Determine the command to run based on the version
# Default to false for test_only
test_only=false
# Check for test_only argument
for arg in "$@"; do
if [[ $arg == "test_only" ]]; then
test_only=true
break
fi
done
# Determine the command to run based on the version and test_only flag
if [ "$test_only" = true ]; then
command="yarn dist -c test_only.json"
else
if [[ $version == *"beta"* ]]; then
command="yarn dist -c beta.json"
elif [[ $version == *"alpha"* ]]; then
@ -13,10 +27,13 @@ elif [[ $version == *"insiders"* ]]; then
else
command="yarn dist -c latest.json"
fi
fi
# Append any arguments passed in CLI
# Append any remaining arguments passed in CLI (except test_only)
for arg in "$@"; do
if [[ $arg != "test_only" ]]; then
command+=" $arg"
fi
done
# Print and run the command

@ -0,0 +1,60 @@
{
"productName": "Remix-Desktop-Insiders",
"appId": "org.ethereum.remix-ide",
"asar": true,
"generateUpdatesFilesForAllChannels": false,
"icon": "assets",
"files": [
"build/**/*",
"node_modules/node-pty/**/*"
],
"afterSign": "aftersign.js",
"afterAllArtifactBuild": "afterbuild.js",
"publish": [
{
"provider": "github",
"owner": "remix-project-org",
"repo": "remix-desktop-insiders",
"releaseType": "draft",
"publishAutoUpdate": true
}
],
"mac": {
"category": "public.app-category.productivity",
"icon": "assets/icon.png",
"darkModeSupport": true,
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "entitlements.mac.plist",
"entitlementsInherit": "entitlements.mac.plist"
},
"dmg": {
"writeUpdateInfo": true,
"sign": true
},
"nsis": {
"createDesktopShortcut": "always",
"allowToChangeInstallationDirectory": true,
"oneClick": false,
"shortcutName": "Remix Desktop Insiders",
"differentialPackage": false
},
"win": {
"target": [
"nsis"
],
"artifactName": "Remix-Desktop-Setup-${version}.${ext}",
"icon": "assets/icon.png"
},
"deb": {},
"linux": {
"target": [
"dir"
],
"category": "WebBrowser",
"icon": "assets"
},
"directories": {
"output": "release"
}
}
Loading…
Cancel
Save