Skip to content

Commit

Permalink
Merge pull request #492 from valory-xyz/chore/rename-to-pearl
Browse files Browse the repository at this point in the history
Remove optimus downloads, renaming, workflows, .etc
  • Loading branch information
truemiller authored Nov 22, 2024
2 parents 9141cf7 + 68785d5 commit 04093cf
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:

# Download the appropriate architecture artifact
- name: Download Pearl (Optimus) binary for architecture
- name: Download Pearl binary for architecture
uses: actions/download-artifact@v4
with:
name: pearl_${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions build-win-tenderly.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const main = async () => {
await build({
publish: 'onTag',
config: {
appId: 'xyz.valory.olas-pearl-optimus',
appId: 'xyz.valory.olas-operate-app',
artifactName: '${productName}-${version}-${platform}-${arch}-tenderly.${ext}',
productName: 'Pearl (Optimus)',
productName: 'Pearl',
files: ['electron/**/*', 'package.json'],
directories: {
output: 'dist',
Expand Down
4 changes: 2 additions & 2 deletions build-win.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const main = async () => {
await build({
publish: 'onTag',
config: {
appId: 'xyz.valory.olas-pearl-optimus',
appId: 'xyz.valory.olas-operate-app',
artifactName: artifactName(),
productName: 'Pearl (Optimus)',
productName: 'Pearl',
files: ['electron/**/*', 'package.json'],
directories: {
output: 'dist',
Expand Down
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const main = async () => {
await build({
publish: 'onTag',
config: {
appId: 'xyz.valory.olas-pearl-optimus',
appId: 'xyz.valory.olas-operate-app',
artifactName: artifactName(),
productName: 'Pearl (Optimus)',
productName: 'Pearl',
files: ['electron/**/*', 'package.json'],
directories: {
output: 'dist',
Expand Down
4 changes: 2 additions & 2 deletions build.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const main = async () => {
await build({
publish: 'onTag',
config: {
appId: 'xyz.valory.olas-pearl-optimus',
appId: 'xyz.valory.olas-operate-app',
artifactName: '${productName}-${version}-${platform}-${arch}.${ext}',
productName: 'Pearl (Optimus)',
productName: 'Pearl',
files: ['electron/**/*', 'package.json'],
directories: {
output: 'dist',
Expand Down
8 changes: 5 additions & 3 deletions download_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ BIN_DIR="electron/bins/"
mkdir -p $BIN_DIR

trader_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/trader.yaml')); print(config['service_version'])")
optimus_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/optimus.yaml')); print(config['service_version'])")
# optimus_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/optimus.yaml')); print(config['service_version'])")

# curl -L -o "${BIN_DIR}aea_bin_x64" "https://github.com/valory-xyz/optimus/releases/download/${optimus_version}/optimus_bin_x64"
# curl -L -o "${BIN_DIR}aea_bin_arm64" "https://github.com/valory-xyz/optimus/releases/download/${optimus_version}/optimus_bin_arm64"

curl -L -o "${BIN_DIR}aea_bin_x64" "https://github.com/valory-xyz/optimus/releases/download/${optimus_version}/optimus_bin_x64"
curl -L -o "${BIN_DIR}aea_bin_arm64" "https://github.com/valory-xyz/optimus/releases/download/${optimus_version}/optimus_bin_arm64"
curl -L -o "${BIN_DIR}aea_bin_x64" "https://github.com/valory-xyz/trader/releases/download/${trader_version}/trader_bin_x64"
curl -L -o "${BIN_DIR}aea_bin_arm64" "https://github.com/valory-xyz/trader/releases/download/${trader_version}/trader_bin_arm64"
2 changes: 1 addition & 1 deletion electron/components/PearlTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PearlTray extends Electron.Tray {
this.activeWindowCallback = activeWindowCallback;

this.setContextMenu(new PearlTrayContextMenu(activeWindowCallback));
this.setToolTip('Pearl (Optimus)');
this.setToolTip('Pearl');

this.#bindClickEvents();
this.#bindIpcListener();
Expand Down
6 changes: 3 additions & 3 deletions electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Env = {
};

const SudoOptions = {
name: 'Pearl (Optimus)',
name: 'Pearl',
env: Env,
};

Expand Down Expand Up @@ -231,7 +231,7 @@ async function setupDarwin(ipcChannel) {

logger.electron('Checking tendermint installation');
if (!isTendermintInstalledUnix()) {
ipcChannel.send('response', 'Installing Pearl (Optimus) Daemon');
ipcChannel.send('response', 'Installing Pearl Daemon');
logger.electron('Installing tendermint');
await installTendermintUnix();
}
Expand All @@ -245,7 +245,7 @@ async function setupUbuntu(ipcChannel) {

logger.electron('Checking tendermint installation');
if (!isTendermintInstalledUnix()) {
ipcChannel.send('response', 'Installing Pearl (Optimus) Daemon');
ipcChannel.send('response', 'Installing Pearl Daemon');
logger.electron('Installing tendermint');
await installTendermintUnix();
}
Expand Down
6 changes: 3 additions & 3 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const createSplashWindow = () => {
height: APP_WIDTH,
resizable: false,
show: true,
title: 'Pearl (Optimus)',
title: 'Pearl',
frame: false,
webPreferences: {
nodeIntegration: true,
Expand All @@ -203,7 +203,7 @@ const HEIGHT = 700;
const createMainWindow = async () => {
const width = isDev ? 840 : APP_WIDTH;
mainWindow = new BrowserWindow({
title: 'Pearl (Optimus)',
title: 'Pearl',
resizable: false,
draggable: true,
frame: false,
Expand Down Expand Up @@ -458,7 +458,7 @@ ipcMain.on('check', async function (event, _argument) {
if (isDev) {
event.sender.send(
'response',
'Starting Pearl (Optimus) Daemon In Development Mode',
'Starting Pearl Daemon In Development Mode',
);

const daemonDevPortAvailable = await isPortAvailable(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"main": "electron/main.js",
"name": "olas-operate-app",
"productName": "Pearl (Optimus)",
"productName": "Pearl",
"description": "An all-in-one application designed to streamline your entry into the world of autonomous agents and earning OLAS through staking.",
"scripts": {
"build:frontend": "cd frontend && yarn build && rm -rf ../electron/.next && cp -r .next ../electron/.next && rm -rf ../electron/public && cp -r public ../electron/public",
Expand Down

0 comments on commit 04093cf

Please sign in to comment.