Skip to content

Commit

Permalink
fix(): try to fix build with env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
moi952 committed Feb 22, 2025
1 parent 71f7129 commit 392f4a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ jobs:
- name: Install dependencies
run: yarn install --network-timeout 1000000

- name: Debug Environment Variables
run: env | sort

- name: Build project (Windows)
if: runner.os == 'Windows'
run: yarn electron:build --windows
Expand Down
3 changes: 2 additions & 1 deletion electron/modules/cryptoService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import dotenv from "dotenv";
dotenv.config();

const algorithm = "aes-256-cbc";
const secret = process.env.ENCRYPTION_KEY;
const secret = "process.env.ENCRYPTION_KEY";
// const secret = process.env.ENCRYPTION_KEY;

// Check if ENCRYPTION_KEY is present and alert if not
if (!secret) {
Expand Down

0 comments on commit 392f4a0

Please sign in to comment.