Files
openhuman/scripts/prepareTauriConfig.js
T
Steven Enamakel 3b2bbb586b add: create TODO.md for upcoming features and improvements
- Documented tasks including skill downloads, JSON-RPC state management, and custom MCP server integration.
- Outlined payment flow integration and various skill enhancements.
- Added checklist for upcoming Android version and background processes.
2026-03-19 10:22:24 -07:00

32 lines
882 B
JavaScript

export default function prepareTauriConfig() {
// For production builds, use the dist directory path
// BASE_URL is only used for updater endpoints, not for frontendDist
const frontendDist = process.env.BASE_URL?.startsWith('http')
? '../dist'
: process.env.BASE_URL || '../dist';
const config = {
build: { frontendDist, devUrl: null },
bundle: { windows: {} },
identifier: 'com.alphahuman.app',
};
if (process.env.WITH_UPDATER === 'true') {
config.plugins = {
updater: {
dialog: false,
endpoints: [process.env.UPDATER_GIST_URL],
pubkey: process.env.UPDATER_PUBLIC_KEY,
},
};
config.bundle.createUpdaterArtifacts = true;
}
if (process.env.KEYPAIR_ALIAS) {
config.bundle.windows.signCommand = `smctl.exe sign --keypair-alias=${process.env.KEYPAIR_ALIAS} --input %1`;
}
return config;
}