"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/scripts/zip-macos-release.ts" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

zip-macos-release.ts  (Signal-Desktop-1.35.2):zip-macos-release.ts  (Signal-Desktop-1.36.1)
/* tslint:disable no-console non-literal-fs-path */ /* eslint-disable no-console */
import fs from 'fs'; import fs from 'fs';
import path from 'path'; import path from 'path';
import rimraf from 'rimraf'; import rimraf from 'rimraf';
import { execSync } from 'child_process'; import { execSync } from 'child_process';
import packageJSON from '../../package.json'; import packageJSON from '../../package.json';
export function zipMacOSRelease() { export function zipMacOSRelease(): void {
if (process.platform !== 'darwin') { if (process.platform !== 'darwin') {
return; return;
} }
const files = fs const files = fs
.readdirSync('release') .readdirSync('release')
.filter(file => path.extname(file) === '.zip'); .filter(file => path.extname(file) === '.zip');
if (!files.length) { if (!files.length) {
throw new Error( throw new Error(
'No zip file found. Maybe the release did not complete properly?' 'No zip file found. Maybe the release did not complete properly?'
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)