mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 11:43:17 +01:00
Revert "rename non-usable artifacts #1551"
This reverts commit 0fd363fbd1
.
This commit is contained in:
parent
da666d0058
commit
3a257db89e
@ -138,7 +138,6 @@
|
|||||||
"appId": "no.mifi.losslesscut",
|
"appId": "no.mifi.losslesscut",
|
||||||
"artifactName": "${productName}-${os}-${arch}.${ext}",
|
"artifactName": "${productName}-${os}-${arch}.${ext}",
|
||||||
"afterSign": "electron-builder-notarize",
|
"afterSign": "electron-builder-notarize",
|
||||||
"afterAllArtifactBuild": "./script/afterAllArtifactBuild.js",
|
|
||||||
"mac": {
|
"mac": {
|
||||||
"hardenedRuntime": true,
|
"hardenedRuntime": true,
|
||||||
"appId": "no.mifi.losslesscut-mac",
|
"appId": "no.mifi.losslesscut-mac",
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
const { join, dirname, basename } = require('path');
|
|
||||||
const { rename } = require('fs/promises');
|
|
||||||
|
|
||||||
module.exports = async (buildResult) => {
|
|
||||||
const newArtifactPaths = [];
|
|
||||||
|
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
|
||||||
for (const artifactPath of buildResult.artifactPaths) {
|
|
||||||
const artifactName = basename(artifactPath);
|
|
||||||
|
|
||||||
// Because many people try to download these files but get confused by it
|
|
||||||
if (['LosslessCut-win-x64.appx', 'LosslessCut-mac-universal.pkg'].includes(artifactName)) {
|
|
||||||
const newPath = join(dirname(artifactPath), `${artifactName}-DO-NOT-DOWNLOAD`);
|
|
||||||
// eslint-disable-next-line no-await-in-loop
|
|
||||||
await rename(artifactPath, newPath);
|
|
||||||
newArtifactPaths.push(newPath);
|
|
||||||
} else {
|
|
||||||
newArtifactPaths.push(artifactPath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// console.log(newArtifactPaths)
|
|
||||||
|
|
||||||
// this seems to be the only way to do it
|
|
||||||
// eslint-disable-next-line no-param-reassign
|
|
||||||
buildResult.artifactPaths = newArtifactPaths;
|
|
||||||
};
|
|
@ -1,11 +0,0 @@
|
|||||||
const afterAllArtifactBuild = require('./afterAllArtifactBuild');
|
|
||||||
|
|
||||||
afterAllArtifactBuild({
|
|
||||||
outDir: '/path/to/lossless-cut/dist',
|
|
||||||
artifactPaths: [
|
|
||||||
'/path/to/lossless-cut/dist/LosslessCut-mac-arm64.dmg.blockmap',
|
|
||||||
'/path/to/lossless-cut/dist/LosslessCut-mac-arm64.dmg',
|
|
||||||
'/path/to/lossless-cut/dist/LosslessCut-mac-universal.pkg',
|
|
||||||
'/path/to/lossless-cut/dist/LosslessCut-win-x64.appx',
|
|
||||||
],
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user