mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 06:32:24 +00:00
b1d7bce7b6
* chore: bump version to 0.3.0 [skip ci] * chore: bump version to 0.4.0 [skip ci] * fix: update GitHub Actions workflow to use new token and repository settings - Changed the environment variable for publishing to use `XGH_TOKEN` instead of `GH_TOKEN` for authentication. - Updated the `PUBLISH_REPO` variable to specify the repository directly. - Adjusted echo messages and curl commands to reflect the new token usage, ensuring proper functionality during the release process. These changes enhance the security and clarity of the publishing workflow. * fix: update Tauri configuration identifier - Changed the application identifier from 'org.telegram.TelegramAir' to 'com.alphahuman.app' in the Tauri configuration file. This update aligns the identifier with the new application branding. * fix: add frontend build step and fix frontendDist path in CI * chore: update GitHub Actions workflows to include Python sidecar setup and caching - Added installation of Python dependencies in both build and package-and-publish workflows. - Implemented setup for Python sidecar binary for Linux and macOS platforms. - Introduced caching for Cargo registry and build artifacts to optimize build times. These changes enhance the CI/CD process by improving dependency management and build efficiency. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
32 lines
882 B
JavaScript
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;
|
|
}
|