Compare commits
	
		
			2 Commits
		
	
	
		
			c927f0c6c6
			...
			1f736a71be
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1f736a71be | |||
| 3ca47d18cd | 
| @ -262,7 +262,7 @@ func main() { | ||||
| 		} | ||||
| 
 | ||||
| 		//fis, err := ioutil.ReadDir(npmdir) | ||||
| 		fi, err := os.Stat(npmdir) | ||||
| 		fi, err := os.Stat(outdir) | ||||
| 		if nil != err { | ||||
| 			panic("stat:" + err.Error()) | ||||
| 		} | ||||
| @ -271,7 +271,7 @@ func main() { | ||||
| 		case "zip": | ||||
| 			err = Zip(f, outdir, "") | ||||
| 			if nil != err { | ||||
| 				panic("tarError:" + err.Error()) | ||||
| 				panic("zipError:" + err.Error()) | ||||
| 			} | ||||
| 		case "tar.gz": | ||||
| 			// Write out the tar | ||||
| @ -281,8 +281,9 @@ func main() { | ||||
| 			tw := tar.NewWriter(zw) | ||||
| 			defer tw.Close() | ||||
| 
 | ||||
| 			//err = tarDir(tw, npmdir, fis, "") | ||||
| 			err = tarEntry(tw, "", fi, npmdir) | ||||
| 			// TODO create Tar() in go-examples | ||||
| 			//err = tarDir(tw, outdir, fis, "") | ||||
| 			err = tarEntry(tw, "", fi, outdir) | ||||
| 			if nil != err { | ||||
| 				panic("tarError:" + err.Error()) | ||||
| 			} | ||||
|  | ||||
							
								
								
									
										14
									
								
								usr/share/install.cmd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								usr/share/install.cmd
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| powershell.exe $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://rootprojects.org/telebit/dist/stable/telebit-stable-windows-amd64.zip -OutFile telebit.zip | ||||
| mkdir %SYSTEMPROFILE%\.local\opt\ | ||||
| 
 | ||||
| del /F /Q /S %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64 > NUL | ||||
| rmdir /Q /S %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64 | ||||
| powershell.exe Expand-Archive -Force .\telebit.zip %SYSTEMPROFILE%\.local\opt\ | ||||
| 
 | ||||
| %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64\bin\serviceman.exe stop telebit | ||||
| 
 | ||||
| del /F /Q /S %SYSTEMPROFILE%\.local\opt\telebit\* > NUL | ||||
| rmdir /Q /S %SYSTEMPROFILE%\.local\opt\telebit | ||||
| move %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64 %SYSTEMPROFILE%\.local\opt\telebit | ||||
| %SYSTEMPROFILE%\.local\opt\telebit\bin\serviceman.exe add --name telebit %SYSTEMPROFILE%\.local\opt\telebit\bin\node %SYSTEMPROFILE%\.local\opt\telebit\bin\telebitd.js | ||||
| %SYSTEMPROFILE%\.local\opt\telebit\bin\pathman.exe add %SYSTEMPROFILE%\.local\opt\telebit\bin | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user