AlvinSeville7cf

Compile

Jul 26th, 2021 (edited)
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. shopt -s globstar
  4.  
  5. mcs -target:exe -optimize -DEBUG -out:"BuildWeights.exe" -r:"System.dll" "BuildWeights.cs"
  6.  
  7. mono BuildWeights.exe
  8.  
  9. rm -f "BuildWeights.exe" "BuildWeights.pdb"
  10.  
  11. mv "ColorfulImageColorization.model" "src/Resources/"
  12.  
  13. mkdir Release
  14.  
  15. csc -target:winexe -optimize -unsafe -out:"Release/Colorful Image Colorization.exe" -r:"System.dll" -r:"System.Drawing.dll" -r:"System.Threading.dll" -r:"System.Threading.Tasks.dll" -r:"System.IO.dll" -r:"System.Windows.Forms.dll" -r:"System.Reflection.dll" -resource:"src/Resources/ColorfulImageColorization.model" -resource:"src/Resources/MainIcon.jpg" -resource:"src/Resources/Original.jpg" $(find 'src/' -name '*.cs' | sed -r -e 's/^(.*)$/"\1"/; :x N; s/\n(.*)/ "\1"/; t x')
  16.  
Add Comment
Please, Sign In to add comment