Generate zsync file for Linux updates
This commit is contained in:
		
							parent
							
								
									acfd2bf9cf
								
							
						
					
					
						commit
						08a1cf5690
					
				| @ -126,7 +126,7 @@ require('electron-packager')({ | |||||||
|             const stream = fs.createWriteStream(downloaded); |             const stream = fs.createWriteStream(downloaded); | ||||||
|             res.data.pipe(stream); |             res.data.pipe(stream); | ||||||
|             stream.on('close', () => { |             stream.on('close', () => { | ||||||
|                 const args = [appPaths[0], 'fchat.AppImage', '-u', 'zsync|https://client.f-list.net/fchat.AppImage.zsync']; |                 const args = [appPaths[0], 'fchat.AppImage', '-u', 'gh-releases-zsync|mrstallion|fchat-rising|latest|F-Chat-Rising-*-linux.AppImage.zsync']; | ||||||
|                 if(process.argv.length > 2) args.push('-s', '--sign-key', process.argv[2]); |                 if(process.argv.length > 2) args.push('-s', '--sign-key', process.argv[2]); | ||||||
|                 else console.warn('Warning: Creating unsigned AppImage'); |                 else console.warn('Warning: Creating unsigned AppImage'); | ||||||
|                 if(process.argv.length > 3) args.push('--sign-args', `--no-tty  --pinentry-mode loopback --yes --passphrase=${process.argv[3]}`); |                 if(process.argv.length > 3) args.push('--sign-args', `--no-tty  --pinentry-mode loopback --yes --passphrase=${process.argv[3]}`); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user