Skip to content

Commit

Permalink
Added a C# configuration and non-HD build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowAfterlife committed Oct 19, 2021
1 parent bd51a57 commit 7acbf84
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/bin
/copyre.n
/copyre.exe
/copyre.zip
11 changes: 11 additions & 0 deletions Build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
del /Q copyre.n
haxe build-neko.hxml

del /Q bin\bin\Copyre.exe
haxe build-cs.hxml

del /Q copyre.zip
cmd /C 7z a copyre.zip copyre.n
cd bin\bin
cmd /C 7z a ..\..\copyre.zip Copyre.exe
pause
3 changes: 3 additions & 0 deletions build-cs.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-cp src
-main Copyre
-cs bin
3 changes: 3 additions & 0 deletions build-neko.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-cp src
-main Copyre
-neko copyre.n
55 changes: 55 additions & 0 deletions copyre-cs.hxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<project version="2">
<!-- Output SWF options -->
<output>
<movie outputType="Application" />
<movie input="" />
<movie path="bin" />
<movie fps="0" />
<movie width="0" />
<movie height="0" />
<movie version="0" />
<movie minorVersion="0" />
<movie platform="C#" />
<movie background="#FFFFFF" />
</output>
<!-- Other classes to be compiled into your SWF -->
<classpaths>
<class path="src" />
</classpaths>
<!-- Build options -->
<build>
<option directives="" />
<option flashStrict="False" />
<option noInlineOnDebug="False" />
<option mainClass="Copyre" />
<option enabledebug="False" />
<option additional="" />
</build>
<!-- haxelib libraries -->
<haxelib>
<!-- example: <library name="..." /> -->
</haxelib>
<!-- Class files to compile (other referenced classes will automatically be included) -->
<compileTargets>
<compile path="src\Main.hx" />
<compile path="src\Copyre.hx" />
</compileTargets>
<!-- Paths to exclude from the Project Explorer tree -->
<hiddenPaths>
<hidden path="obj" />
</hiddenPaths>
<!-- Executed before build -->
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False">DEBUG: cmd /C copy bin\bin\Copyre-Debug.exe copyre.exe
RELEASE: cmd /C copy bin\bin\Copyre.exe copyre.exe</postBuildCommand>
<!-- Other project options -->
<options>
<option showHiddenPaths="False" />
<option testMovie="Custom" />
<option testMovieCommand="" />
</options>
<!-- Plugin storage -->
<storage />
</project>
3 changes: 2 additions & 1 deletion copyre.hxproj → copyre-neko.hxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<option directives="" />
<option flashStrict="False" />
<option noInlineOnDebug="False" />
<option mainClass="Main" />
<option mainClass="Copyre" />
<option enabledebug="False" />
<option additional="" />
</build>
Expand All @@ -33,6 +33,7 @@
<!-- Class files to compile (other referenced classes will automatically be included) -->
<compileTargets>
<compile path="src\Main.hx" />
<compile path="src\Copyre.hx" />
</compileTargets>
<!-- Paths to exclude from the Project Explorer tree -->
<hiddenPaths>
Expand Down
3 changes: 1 addition & 2 deletions src/Main.hx → src/Copyre.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package;
import haxe.io.BytesInput;
import haxe.io.Eof;
import haxe.io.Path;
import neko.Lib;
import sys.FileSystem;
import sys.io.File;
import sys.io.FileSeek;
Expand All @@ -13,7 +12,7 @@ using StringTools;
* ...
* @author YellowAfterlife
*/
class Main {
class Copyre {
static var pairs:Array<{ from:String, to:String }> = [];
static function copyFile(s1:FullPath, s2:FullPath, r1:String, r2:String) {
var stat = FileSystem.stat(s1);
Expand Down

0 comments on commit 7acbf84

Please sign in to comment.