parent
5a6608e917
commit
4fb1032815
@ -0,0 +1,62 @@ |
||||
{ |
||||
"productName": "Remix-Desktop-alpha", |
||||
"appId": "org.ethereum.remix-ide", |
||||
"asar": true, |
||||
"generateUpdatesFilesForAllChannels": true, |
||||
"icon": "assets", |
||||
"files": [ |
||||
"build/**/*" |
||||
], |
||||
"afterSign": "aftersign.js", |
||||
"afterAllArtifactBuild": "afterbuild.js", |
||||
"publish": [ |
||||
{ |
||||
"provider": "github", |
||||
"owner": "remix-project-org", |
||||
"repo": "remix-desktop", |
||||
"releaseType": "draft", |
||||
"publishAutoUpdate": true, |
||||
"channel": "alpha" |
||||
} |
||||
], |
||||
"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 alpha", |
||||
"differentialPackage": false |
||||
}, |
||||
"win": { |
||||
"target": [ |
||||
"nsis" |
||||
], |
||||
"artifactName": "${productName}-Setup-${version}.${ext}", |
||||
"icon": "assets/icon.png" |
||||
}, |
||||
"deb": {}, |
||||
"linux": { |
||||
"target": [ |
||||
"deb", |
||||
"snap", |
||||
"AppImage" |
||||
], |
||||
"category": "WebBrowser", |
||||
"icon": "assets" |
||||
}, |
||||
"directories": { |
||||
"output": "release" |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
{ |
||||
"productName": "Remix-Desktop-Beta", |
||||
"appId": "org.ethereum.remix-ide", |
||||
"asar": true, |
||||
"generateUpdatesFilesForAllChannels": true, |
||||
"icon": "assets", |
||||
"files": [ |
||||
"build/**/*" |
||||
], |
||||
"afterSign": "aftersign.js", |
||||
"afterAllArtifactBuild": "afterbuild.js", |
||||
"publish": [ |
||||
{ |
||||
"provider": "github", |
||||
"owner": "remix-project-org", |
||||
"repo": "remix-desktop", |
||||
"releaseType": "draft", |
||||
"publishAutoUpdate": true, |
||||
"channel": "beta" |
||||
} |
||||
], |
||||
"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 Beta", |
||||
"differentialPackage": false |
||||
}, |
||||
"win": { |
||||
"target": [ |
||||
"nsis" |
||||
], |
||||
"artifactName": "${productName}-Setup-${version}.${ext}", |
||||
"icon": "assets/icon.png" |
||||
}, |
||||
"deb": {}, |
||||
"linux": { |
||||
"target": [ |
||||
"deb", |
||||
"snap", |
||||
"AppImage" |
||||
], |
||||
"category": "WebBrowser", |
||||
"icon": "assets" |
||||
}, |
||||
"directories": { |
||||
"output": "release" |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
{ |
||||
"productName": "Remix-Desktop", |
||||
"appId": "org.ethereum.remix-ide", |
||||
"asar": true, |
||||
"generateUpdatesFilesForAllChannels": true, |
||||
"icon": "assets", |
||||
"files": [ |
||||
"build/**/*" |
||||
], |
||||
"afterSign": "aftersign.js", |
||||
"afterAllArtifactBuild": "afterbuild.js", |
||||
"publish": [ |
||||
{ |
||||
"provider": "github", |
||||
"owner": "remix-project-org", |
||||
"repo": "remix-desktop", |
||||
"releaseType": "draft", |
||||
"publishAutoUpdate": true, |
||||
"channel": "latest" |
||||
} |
||||
], |
||||
"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", |
||||
"differentialPackage": false |
||||
}, |
||||
"win": { |
||||
"target": [ |
||||
"nsis" |
||||
], |
||||
"artifactName": "${productName}-Setup-${version}.${ext}", |
||||
"icon": "assets/icon.png" |
||||
}, |
||||
"deb": {}, |
||||
"linux": { |
||||
"target": [ |
||||
"deb", |
||||
"snap", |
||||
"AppImage" |
||||
], |
||||
"category": "WebBrowser", |
||||
"icon": "assets" |
||||
}, |
||||
"directories": { |
||||
"output": "release" |
||||
} |
||||
} |
@ -0,0 +1,22 @@ |
||||
#!/bin/bash |
||||
|
||||
# Read the version from package.json |
||||
version=$(grep -oP '"version":\s*"\K[0-9a-zA-Z.-]+' 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" |
||||
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…
Reference in new issue