Files
openhuman/scripts/prepareTauriConfig.js
T
Steven EnamakelandGitHub 1916bb9033 Feat/gitbooks (#1)
* added gitbooks

* 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.

* refactor: update ESLint configuration and adjust module import path

- Removed 'deploy/**' from ESLint ignore patterns to ensure better linting coverage.
- Changed the module import path in the GitHub Actions workflow from 'deploy/prepareTauriConfig.js' to 'scripts/prepareTauriConfig.js' for improved organization.
2026-03-19 10:27:31 -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;
}