mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-02 06:20:14 +08:00
* feat(linux): support managed user installs and updates on Arch/Omarchy Add verified user-owned installation transactions, stable desktop and login callbacks, and keyring selector preservation. Document migration and release acceptance; cover native updater failures and Linux test fixtures. Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(linux): recover managed install transaction Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> --------- Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
16 lines
692 B
TypeScript
16 lines
692 B
TypeScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
|
|
/** Release identity outside ASAR for the unprivileged Linux installer. */
|
|
export function stageLinuxBuildInfo(
|
|
buildPath: string, platform: string, arch: string, version: string, region: string,
|
|
): void {
|
|
if (platform !== 'linux') return;
|
|
if (!['x64', 'arm64'].includes(arch) || !['global', 'cn', 'dev'].includes(region)
|
|
|| !/^[0-9]+\.[0-9]+\.[0-9]+([+-][A-Za-z0-9.-]+)?$/.test(version)) {
|
|
throw new Error('Invalid Linux build identity');
|
|
}
|
|
fs.writeFileSync(path.join(buildPath, 'resources', 'linux-build-info'),
|
|
`cindy-linux-v1\n${version}\n${arch}\n${region}\n${region === 'dev' ? 'CindyDev' : 'Cindy'}\n`);
|
|
}
|