Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- shopt -s globstar
- mcs -target:exe -optimize -DEBUG -out:"BuildWeights.exe" -r:"System.dll" "BuildWeights.cs"
- mono BuildWeights.exe
- rm -f "BuildWeights.exe" "BuildWeights.pdb"
- mv "ColorfulImageColorization.model" "src/Resources/"
- mkdir Release
- 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')
Add Comment
Please, Sign In to add comment