mirror of
				https://github.com/eugeny/tabby
				synced 2025-10-30 05:57:06 +00:00 
			
		
		
		
	electron builder fixes
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Package-Build / Lint (push) Has been cancelled
				
			
		
			
				
	
				CodeQL / Analyze (javascript) (push) Has been cancelled
				
			
		
			
				
	
				Docs / build (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / macOS-Build (arm64, aarch64-apple-darwin) (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / macOS-Build (x86_64, x86_64-apple-darwin) (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / Linux-Build (amd64, x64, ubuntu-24.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / Linux-Build (arm64, arm64, ubuntu-24.04-arm, aarch64-unknown-linux-gnu, aarch64-linux-gnu-) (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / Linux-Build (armhf, arm, ubuntu-24.04, arm-unknown-linux-gnueabihf, arm-linux-gnueabihf-) (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / Windows-Build (arm64, aarch64-pc-windows-msvc) (push) Has been cancelled
				
			
		
			
				
	
				Package-Build / Windows-Build (x64, x86_64-pc-windows-msvc) (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Package-Build / Lint (push) Has been cancelled
				
			CodeQL / Analyze (javascript) (push) Has been cancelled
				
			Docs / build (push) Has been cancelled
				
			Package-Build / macOS-Build (arm64, aarch64-apple-darwin) (push) Has been cancelled
				
			Package-Build / macOS-Build (x86_64, x86_64-apple-darwin) (push) Has been cancelled
				
			Package-Build / Linux-Build (amd64, x64, ubuntu-24.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
				
			Package-Build / Linux-Build (arm64, arm64, ubuntu-24.04-arm, aarch64-unknown-linux-gnu, aarch64-linux-gnu-) (push) Has been cancelled
				
			Package-Build / Linux-Build (armhf, arm, ubuntu-24.04, arm-unknown-linux-gnueabihf, arm-linux-gnueabihf-) (push) Has been cancelled
				
			Package-Build / Windows-Build (arm64, aarch64-pc-windows-msvc) (push) Has been cancelled
				
			Package-Build / Windows-Build (x64, x86_64-pc-windows-msvc) (push) Has been cancelled
				
			This commit is contained in:
		| @@ -37,7 +37,8 @@ asarUnpack: | ||||
| win: | ||||
|   icon: "./build/windows/icon.ico" | ||||
|   artifactName: tabby-${version}-portable-${env.ARCH}.${ext} | ||||
|   rfc3161TimeStampServer: http://timestamp.sectigo.com | ||||
|   signtoolOptions: | ||||
|     rfc3161TimeStampServer: http://timestamp.sectigo.com | ||||
| nsis: | ||||
|   oneClick: false | ||||
|   artifactName: tabby-${version}-setup-${env.ARCH}.${ext} | ||||
|   | ||||
| @@ -28,9 +28,7 @@ builder({ | ||||
|         }, | ||||
|         mac: { | ||||
|             identity: !process.env.CI || process.env.CSC_LINK ? undefined : null, | ||||
|             notarize: process.env.APPLE_TEAM_ID ? { | ||||
|                 teamId: process.env.APPLE_TEAM_ID, | ||||
|             } : false, | ||||
|             notarize: !!process.env.APPLE_TEAM_ID, | ||||
|         }, | ||||
|         npmRebuild: process.env.ARCH !== 'arm64', | ||||
|         publish: process.env.KEYGEN_TOKEN ? [ | ||||
|   | ||||
| @@ -28,27 +28,29 @@ builder({ | ||||
|         ] : undefined, | ||||
|         forceCodeSigning: !!keypair, | ||||
|         win: { | ||||
|             certificateSha1: process.env.SM_CODE_SIGNING_CERT_SHA1_HASH, | ||||
|             publisherName: process.env.SM_PUBLISHER_NAME, | ||||
|             signingHashAlgorithms: ['sha256'], | ||||
|             sign: keypair ? async function (configuration) { | ||||
|                 console.log('Signing', configuration) | ||||
|                 if (configuration.path) { | ||||
|                     try { | ||||
|                         const out = execSync( | ||||
|                             `smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"` | ||||
|                         ) | ||||
|                         if (out.toString().includes('FAILED')) { | ||||
|                             throw new Error(out.toString()) | ||||
|             signtoolOptions: { | ||||
|                 certificateSha1: process.env.SM_CODE_SIGNING_CERT_SHA1_HASH, | ||||
|                 publisherName: process.env.SM_PUBLISHER_NAME, | ||||
|                 signingHashAlgorithms: ['sha256'], | ||||
|                 sign: keypair ? async function (configuration) { | ||||
|                     console.log('Signing', configuration) | ||||
|                     if (configuration.path) { | ||||
|                         try { | ||||
|                             const out = execSync( | ||||
|                                 `smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"` | ||||
|                             ) | ||||
|                             if (out.toString().includes('FAILED')) { | ||||
|                                 throw new Error(out.toString()) | ||||
|                             } | ||||
|                             console.log(out.toString()) | ||||
|                         } catch (e) { | ||||
|                             console.error(`Failed to sign ${configuration.path}`) | ||||
|                             console.error(e) | ||||
|                             process.exit(1) | ||||
|                         } | ||||
|                         console.log(out.toString()) | ||||
|                     } catch (e) { | ||||
|                         console.error(`Failed to sign ${configuration.path}`) | ||||
|                         console.error(e) | ||||
|                         process.exit(1) | ||||
|                     } | ||||
|                 } | ||||
|             } : undefined, | ||||
|                 } : undefined, | ||||
|             }, | ||||
|         }, | ||||
|     }, | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Eugene
					Eugene