remove unused file
This commit is contained in:
		
							parent
							
								
									4933c5ef46
								
							
						
					
					
						commit
						1f12f77f5f
					
				
					 1 changed files with 0 additions and 44 deletions
				
			
		|  | @ -1,44 +0,0 @@ | |||
| cd "rssguard-build\src\rssguard" | ||||
| $OutputEncoding = New-Object -typename System.Text.UTF8Encoding | ||||
| 
 | ||||
| # Clone wiki. | ||||
| git clone -q --depth=1 https://github.com/martinrotter/rssguard.wiki.git "C:\rssguard-wiki" | ||||
| git config --global credential.helper store | ||||
| Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" | ||||
| git config --global user.email "rotter.martinos@gmail.com" | ||||
| git config --global user.name "martinrotter" | ||||
| 
 | ||||
| $git_revision = git rev-parse --short HEAD | ||||
| $date = (Get-Date).ToUniversalTime().ToString("MM-dd-yyyy HH:mm:ss UTC") | ||||
| $wikifile = 'C:\rssguard-wiki\Development-builds.md' | ||||
| 
 | ||||
| # Upload 7z. | ||||
| $file = (Get-ChildItem '*.7z').Name | ||||
| echo "File to upload: $file" | ||||
| $url = curl.exe --upload-file "$file" "https://transfer.sh/$file" --silent | ||||
| echo "Obtained URL: $url" | ||||
| 
 | ||||
| $webengine_type = if ($file -like '*nowebengine*') { echo "false" } else { echo "true" } | ||||
| $regex = "\| Windows \|.+transfer\.sh \(7z\).+ $webengine_type \|  " | ||||
| $wikiline = "| Windows | $date | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh (7z)]($url) | $webengine_type |  " | ||||
| 
 | ||||
| (Get-Content $wikifile) -replace $regex, $wikiline | Set-Content -Encoding "utf8" $wikifile | ||||
| 
 | ||||
| # Upload exe. | ||||
| $file = (Get-ChildItem '*-win64.exe').Name | ||||
| echo "File to upload: $file" | ||||
| $url = curl.exe --upload-file "$file" "https://transfer.sh/$file" --silent | ||||
| echo "Obtained URL: $url" | ||||
| 
 | ||||
| $webengine_type = if ($file -like '*nowebengine*') { echo "false" } else { echo "true" } | ||||
| $regex = "\| Windows \|.+transfer\.sh \(exe\).+ $webengine_type \|  " | ||||
| $wikiline = "| Windows | $date | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh (exe)]($url) | $webengine_type |  " | ||||
| 
 | ||||
| (Get-Content $wikifile) -replace $regex, $wikiline | Set-Content -Encoding "utf8" $wikifile | ||||
| 
 | ||||
| # Push new wiki. | ||||
| cd "C:\rssguard-wiki" | ||||
| git add *.* | ||||
| git commit -m "New files." | ||||
| git pull origin master | ||||
| git push origin master -v | ||||
		Loading…
	
	Add table
		
		Reference in a new issue