Skip to content

Commit

Permalink
windows install working
Browse files Browse the repository at this point in the history
  • Loading branch information
akissinger committed May 2, 2014
1 parent 07b0067 commit 327778a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions scala/dist/mk-linux-generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cp -f dist/linux-dist/libpolyml.so.4 $BUNDLE/bin

echo Including heap...
cp -f ../core/run_protocol.ML $BUNDLE/
cp -f dist/ml.xml $BUNDLE/
mkdir -p $BUNDLE/heaps
cp -f ../core/heaps/quanto.heap $BUNDLE/heaps/

Expand Down
1 change: 1 addition & 0 deletions scala/dist/mk-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mkdir %BUNDLE%\bin
REM This dummy file lets the frontend know it is running inside
REM a generic linux bundle.
type nul >> %BUNDLE%\windows-bundle
copy dist\ml.xml %BUNDLE%

echo Running SBT...
call sbt package
Expand Down
3 changes: 2 additions & 1 deletion scala/dist/windows-dist/QuantoDerive.aip
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
<ROW File="libpolyml.a" Component_="libpolymain.a" FileName="LIBPOL~2.A|libpolyml.a" Attributes="0" SourcePath="..\..\target\QuantoDerive\bin\libpolyml.a" SelfReg="false" NextFile="libpolyml.dll.a"/>
<ROW File="libpolyml.dll.a" Component_="libpolymain.a" FileName="LIBPOL~3.A|libpolyml.dll.a" Attributes="0" SourcePath="..\..\target\QuantoDerive\bin\libpolyml.dll.a" SelfReg="false" NextFile="libpolyml.la"/>
<ROW File="libpolyml.la" Component_="libpolymain.a" FileName="LIBPOL~2.LA|libpolyml.la" Attributes="0" SourcePath="..\..\target\QuantoDerive\bin\libpolyml.la" SelfReg="false" NextFile="poly.exe"/>
<ROW File="ml.xml" Component_="run_protocol.ML" FileName="ml.xml" Attributes="0" SourcePath="..\..\target\QuantoDerive\ml.xml" SelfReg="false"/>
<ROW File="poly.exe" Component_="poly.exe" FileName="poly.exe" Attributes="0" SourcePath="..\..\target\QuantoDerive\bin\poly.exe" SelfReg="false" NextFile="akkaactor_2.102.1.1.jar" DigSign="true"/>
<ROW File="quanto.heap" Component_="quanto.heap" FileName="QUANTO~1.HEA|quanto.heap" Attributes="0" SourcePath="..\..\target\QuantoDerive\heaps\quanto.heap" SelfReg="false"/>
<ROW File="quanto.heap" Component_="quanto.heap" FileName="QUANTO~1.HEA|quanto.heap" Attributes="0" SourcePath="..\..\target\QuantoDerive\heaps\quanto.heap" SelfReg="false" NextFile="ml.xml"/>
<ROW File="quanto_2.101.0.jar" Component_="akkaactor_2.102.1.1.jar" FileName="QUANTO~1.JAR|quanto_2.10-1.0.jar" Attributes="0" SourcePath="..\..\target\QuantoDerive\jars\quanto_2.10-1.0.jar" SelfReg="false" NextFile="scalalibrary2.10.4.jar"/>
<ROW File="run_protocol.ML" Component_="run_protocol.ML" FileName="RUN_PR~1.ML|run_protocol.ML" Attributes="0" SourcePath="..\..\target\QuantoDerive\run_protocol.ML" SelfReg="false" NextFile="windowsbundle"/>
<ROW File="scalalibrary2.10.4.jar" Component_="akkaactor_2.102.1.1.jar" FileName="SCALA-~1.JAR|scala-library-2.10.4.jar" Attributes="0" SourcePath="..\..\target\QuantoDerive\jars\scala-library-2.10.4.jar" SelfReg="false" NextFile="scalaswing2.10.4.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion scala/src/main/scala/quanto/core/Core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Core extends Actor with ActorLogging {
fw.write(msg.code)
fw.write("\n")
fw.close()
val code = codeWrapper.format(workingDir, file.getAbsolutePath, mlCompileId)
val code = codeWrapper.format(workingDir.replace("\\","\\\\"), file.getAbsolutePath.replace("\\","\\\\"), mlCompileId)

activeRequests.synchronized(activeRequests += mlCompileId)
coreProcess.consoleOutput.addListener(mlCompileId)(msg.onComplete)
Expand Down
5 changes: 3 additions & 2 deletions scala/src/main/scala/quanto/gui/MLEditPanel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MLEditPanel extends BorderPanel with HasDocument {

val sml = new Mode("StandardML")

val mlModeXml = if (Globals.isMacBundle) new File("ml.xml").getAbsolutePath
val mlModeXml = if (Globals.isBundle) new File("ml.xml").getAbsolutePath
else getClass.getResource("ml.xml").getPath
sml.setProperty("file", mlModeXml)
println(sml.getProperty("file"))
Expand Down Expand Up @@ -104,7 +104,8 @@ class MLEditPanel extends BorderPanel with HasDocument {
QuantoDerive.CoreStatus.text = "Exception in ML"
QuantoDerive.CoreStatus.foreground = Color.RED
QuantoDerive.ConsoleProgress.indeterminate = false
case _ =>
case msg =>
println(msg)
QuantoDerive.CoreStatus.text = "Unrecognised response from Poly/ML"
QuantoDerive.CoreStatus.foreground = Color.BLUE
QuantoDerive.ConsoleProgress.indeterminate = false
Expand Down
1 change: 1 addition & 0 deletions scala/src/main/scala/quanto/util/Globals.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ object Globals {
def isMacBundle: Boolean = new File("osx-bundle").exists
def isLinuxBundle: Boolean = new File("linux-bundle").exists
def isWindowsBundle: Boolean = new File("windows-bundle").exists
def isBundle: Boolean = isMacBundle || isWindowsBundle || isLinuxBundle
}

0 comments on commit 327778a

Please sign in to comment.