Skip to content

Commit dc96d73

Browse files
Merge pull request #15 from devlopersabbir/sabbir
change to hardcoded
2 parents f48ed8a + 1182ebb commit dc96d73

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/electron-build.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ jobs:
4747
with:
4848
draft: true
4949
files: |
50-
desktop/*.exe
51-
desktop/*.zip
52-
desktop/*.dmg
53-
desktop/*.AppImage
54-
desktop/*.snap
55-
desktop/*.deb
56-
desktop/*.rpm
57-
desktop/*.tar.gz
58-
desktop/*.yml
59-
desktop/*.blockmap
50+
desktop/dist/*.exe
51+
desktop/dist/*.zip
52+
desktop/dist/*.dmg
53+
desktop/dist/*.AppImage
54+
desktop/dist/*.snap
55+
desktop/dist/*.deb
56+
desktop/dist/*.rpm
57+
desktop/dist/*.tar.gz
58+
desktop/dist/*.yml
59+
desktop/dist/*.blockmap
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.RELEASE_NOTE_WRITE }}

desktop/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"name": "executeme-desktop",
3-
"version": "0.0.1",
2+
"name": "executeme",
3+
"displayName": "Execute Me",
4+
"version": "0.0.2",
45
"description": "Executeme is a cross platoform program compiler",
56
"main": "./out/main/index.js",
67
"author": {

desktop/src/main/lib/execute-code.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Input } from "@shared/types";
22
import { IpcMainInvokeEvent } from "electron";
33
import https from "https";
44
import axios from "axios";
5-
import { is } from "@electron-toolkit/utils";
65

76
export const handleExecuteCode = async (_: IpcMainInvokeEvent, payload: Input) => {
87
const agent = new https.Agent({
@@ -11,9 +10,7 @@ export const handleExecuteCode = async (_: IpcMainInvokeEvent, payload: Input) =
1110
const axiosInstance = axios.create({
1211
httpsAgent: agent
1312
});
14-
const baseAPI = is.dev
15-
? process.env.RENDERER_VITE_SERVER_BASE_URL
16-
: process.env.RENDERER_VITE_SERVER_BASE_URL;
13+
const baseAPI = "https://145.223.97.55:9292";
1714
const start = performance.now();
1815
try {
1916
const { data } = await axiosInstance.post(`${baseAPI}/run`, payload);

0 commit comments

Comments
 (0)