diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78dc854d7..7187504d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: - run: yarn install-deps - name: "Build frontend with env vars" run: yarn build:frontend - env: + env: NODE_ENV: production DEV_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/ IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }} @@ -121,4 +121,7 @@ jobs: NODE_ENV: development DEV_RPC: https://virtual.gnosis.rpc.tenderly.co/78ca845d-2b24-44a6-9ce2-869a979e8b5b FORK_URL: https://virtual.gnosis.rpc.tenderly.co/78ca845d-2b24-44a6-9ce2-869a979e8b5b - run: node build.js \ No newline at end of file + run: | + echo "DEV_RPC=https://virtual.gnosis.rpc.tenderly.co/78ca845d-2b24-44a6-9ce2-869a979e8b5b" >> .env + echo -e "FORK_URL=https://virtual.gnosis.rpc.tenderly.co/78ca845d-2b24-44a6-9ce2-869a979e8b5b" >> .env + node build.js \ No newline at end of file diff --git a/build.js b/build.js index ed96764e0..fa1e1b0db 100644 --- a/build.js +++ b/build.js @@ -36,6 +36,10 @@ const main = async () => { to: 'bins', filter: ['**/*'], }, + { + from: '.env', + to: '.env' + }, ], cscKeyPassword: process.env.CSC_KEY_PASSWORD, cscLink: process.env.CSC_LINK, diff --git a/electron/install.js b/electron/install.js index 73f17892c..372c7b368 100644 --- a/electron/install.js +++ b/electron/install.js @@ -14,7 +14,17 @@ const { paths } = require('./constants'); * - use "" (nothing as a suffix) for latest release candidate, for example "0.1.0rc26" * - use "alpha" for alpha release, for example "0.1.0rc26-alpha" */ -const OlasMiddlewareVersion = '0.1.0rc97'; +const OlasMiddlewareVersion = '0.1.0rc105'; + +const path = require('path'); +const { app } = require('electron'); + +// load env vars +require('dotenv').config({ + path: app.isPackaged + ? path.join(process.resourcesPath, '.env') + : path.resolve(process.cwd(), '.env'), +}); const Env = { ...process.env, diff --git a/package.json b/package.json index 66ccdaace..3dd422bfe 100644 --- a/package.json +++ b/package.json @@ -57,5 +57,5 @@ "test:frontend": "cd frontend && yarn test", "download-binaries": "sh download_binaries.sh" }, - "version": "0.1.0-rc97" + "version": "0.1.0-rc105" } diff --git a/pyproject.toml b/pyproject.toml index 8a4765170..8ed25abe0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "olas-operate-middleware" -version = "0.1.0-rc97" +version = "0.1.0-rc105" description = "" authors = ["David Vilela ", "Viraj Patel "] readme = "README.md"