[CI > Win] Rewrite replacing within asar
This commit is contained in:
		
							parent
							
								
									a7bf97b3c2
								
							
						
					
					
						commit
						ba1876c9eb
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								.github/workflows/nightly.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/nightly.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -102,8 +102,8 @@ jobs:
 | 
			
		|||
        tar xf client.tar
 | 
			
		||||
 | 
			
		||||
        # Install OpenAsar build and setup environment
 | 
			
		||||
        sed -i "s/^\/\/ <TEST_FLAG>.*$/console.log\('ABRA'\); process.exit\(\);/" app.asar
 | 
			
		||||
        sed -r -i "s/^.*log\('Updater', 'Restarting', next\);/return; \/\/ stub stub stub stub stub stub /" app.asar
 | 
			
		||||
        sed -r -i "s/const config=require\('./config'\);/console.log\('ABRA'\);app.quit\(\);\/\//" app.asar
 | 
			
		||||
        sed -r -i "s/log\('Updater','Restarting',next\);/return; \/\/ stub stub stub stub st/" app.asar
 | 
			
		||||
        cp -f app.asar files/resources/app.asar
 | 
			
		||||
        mkdir discord
 | 
			
		||||
        cp -rf files/ discord/app-1.0.0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue