mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
Remove things that now live in riot-builder
This commit is contained in:
parent
3f89d545ed
commit
a1366992bc
@ -85,11 +85,6 @@
|
|||||||
"StartupWMClass": "riot"
|
"StartupWMClass": "riot"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deb": {
|
|
||||||
"fpm": [
|
|
||||||
"--deb-custom-control=pkg/control"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.social-networking",
|
"category": "public.app-category.social-networking",
|
||||||
"darkModeSupport": true
|
"darkModeSupport": true
|
||||||
|
@ -40,41 +40,16 @@ async function setPackageVersion(ver) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setDebVersion(ver) {
|
|
||||||
// Also create a debian package control file with the version.
|
|
||||||
// We use a custom control file so we need to do this ourselves
|
|
||||||
const outFile = await fs.open('pkg/control', 'w');
|
|
||||||
const template = await fs.readFile('pkg/control.template');
|
|
||||||
await outFile.write(template);
|
|
||||||
await outFile.write('Version: ' + ver + "\n");
|
|
||||||
await outFile.close();
|
|
||||||
|
|
||||||
console.log("Version set to " + ver);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function main(args) {
|
async function main(args) {
|
||||||
let setDeb = false;
|
let version = args[0];
|
||||||
let setPkg = false;
|
|
||||||
let version;
|
|
||||||
|
|
||||||
for (const arg of args) {
|
|
||||||
if (arg === '--deb') {
|
|
||||||
setDeb = true;
|
|
||||||
} else if (arg === '--pkg') {
|
|
||||||
setPkg = true;
|
|
||||||
} else {
|
|
||||||
version = arg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (version === undefined) version = await versionFromAsar();
|
if (version === undefined) version = await versionFromAsar();
|
||||||
|
|
||||||
if (setPkg) await setPackageVersion(version);
|
await setPackageVersion(version);
|
||||||
if (setDeb) await setDebVersion(version);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
main(process.argv.slice(2)).then((ret) => process.exit(ret));
|
main(process.argv.slice(2)).then((ret) => process.exit(ret));
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {versionFromAsar, setPackageVersion, setDebVersion};
|
module.exports = {versionFromAsar, setPackageVersion};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user