Compare commits

4 Commits
v2 ... master

Author SHA1 Message Date
xyroscar
b5137a1736 updating readme regarding appimage and application signing on macos 2025-12-31 19:10:51 -08:00
xyroscar
2e0cefb684 adding null values for signing for macOS 2025-12-31 18:41:26 -08:00
xyroscar
75210ec73a adding missed commit for integrating requests 2025-12-31 18:37:17 -08:00
xyroscar
031f0514d6 updating version 2025-12-31 13:08:03 -08:00
4 changed files with 41 additions and 38 deletions

View File

@@ -40,6 +40,23 @@ bun run tauri dev
bun run tauri build bun run tauri build
``` ```
### Signing the application on macOS
```bash
export APPLE_SIGNING_IDENTITY="<YOUR_SIGNING_IDENTITY>"
bun run tauri build
```
#### To get the signing identity
```bash
security find-identity -v -p codesigning
```
### Reason for not including appimage in the targets
Due to an issue with linuxdeploy on my system, I wasn't able to build the appimage so I removed it from the targets.
### Project Structure ### Project Structure
``` ```

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "resona", "productName": "resona",
"version": "0.1.0", "version": "1.0.0",
"identifier": "com.resona.app", "identifier": "com.resona.app",
"build": { "build": {
"beforeDevCommand": "bun run dev", "beforeDevCommand": "bun run dev",
@@ -23,13 +23,18 @@
}, },
"bundle": { "bundle": {
"active": true, "active": true,
"targets": "all", "targets": ["deb", "rpm", "nsis", "msi", "app", "dmg"],
"icon": [ "icon": [
"icons/32x32.png", "icons/32x32.png",
"icons/128x128.png", "icons/128x128.png",
"icons/128x128@2x.png", "icons/128x128@2x.png",
"icons/icon.icns", "icons/icon.icns",
"icons/icon.ico" "icons/icon.ico"
] ],
"macOS": {
"signingIdentity": null,
"providerShortName": null,
"entitlements": null
}
} }
} }

View File

@@ -26,6 +26,7 @@
delete_request, delete_request,
} from "$lib/services/collections"; } from "$lib/services/collections";
import { get_resolved_variables } from "$lib/services/variables"; import { get_resolved_variables } from "$lib/services/variables";
import { send_request } from "$lib/services/http";
import type { Workspace } from "$lib/types/workspace"; import type { Workspace } from "$lib/types/workspace";
import type { Collection } from "$lib/types/collection"; import type { Collection } from "$lib/types/collection";
import type { Request, HttpMethod } from "$lib/types/request"; import type { Request, HttpMethod } from "$lib/types/request";
@@ -191,50 +192,30 @@
loading = true; loading = true;
response = null; response = null;
// Simulate API request (will be replaced with actual Tauri call later)
const startTime = Date.now();
try { try {
// Mock response for now const httpResponse = await send_request(request, resolvedVariables);
await new Promise((resolve) =>
setTimeout(resolve, 500 + Math.random() * 1000)
);
const mockBody = JSON.stringify( const contentType =
{ httpResponse.headers.find((h) => h.key.toLowerCase() === "content-type")
success: true, ?.value ?? "text/plain";
message: "This is a mock response",
data: {
id: 1,
name: "Example",
timestamp: new Date().toISOString(),
},
},
null,
2
);
response = { response = {
status: 200, status: httpResponse.status,
statusText: "OK", statusText: httpResponse.statusText,
headers: [ headers: httpResponse.headers,
{ key: "Content-Type", value: "application/json" }, body: httpResponse.body,
{ key: "X-Request-Id", value: crypto.randomUUID() }, contentType,
{ key: "Cache-Control", value: "no-cache" }, duration: httpResponse.timeMs,
], size: httpResponse.sizeBytes,
body: mockBody,
contentType: "application/json",
duration: Date.now() - startTime,
size: new Blob([mockBody]).size,
}; };
} catch (error) { } catch (error) {
response = { response = {
status: 500, status: 0,
statusText: "Error", statusText: "Error",
headers: [], headers: [],
body: JSON.stringify({ error: "Request failed" }), body: error instanceof Error ? error.message : "Request failed",
contentType: "application/json", contentType: "text/plain",
duration: Date.now() - startTime, duration: 0,
size: 0, size: 0,
}; };
} finally { } finally {