forked from sheetjs/docs.sheetjs.com
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			497 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			497 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # https://docs.sheetjs.com/docs/demos/cli/nexe
 | |
| cd /tmp
 | |
| rm -rf sheetjs-nexe
 | |
| mkdir sheetjs-nexe
 | |
| cd sheetjs-nexe
 | |
| 
 | |
| curl -o pres.numbers https://docs.sheetjs.com/pres.numbers
 | |
| 
 | |
| curl -o xlsx-cli.js https://docs.sheetjs.com/cli/xlsx-cli.js
 | |
| 
 | |
| npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz exit-on-epipe commander@2
 | |
| 
 | |
| ## npx -y nexe -t 14.15.3 xlsx-cli.js ## does not work on arm64
 | |
| npx -y nexe xlsx-cli.js --build --python=$(which python3) --make="-j8"
 | |
| 
 | |
| ./xlsx-cli pres.numbers
 |