Mark Sibly 7 年之前
父节点
当前提交
ccb15b8a2e
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 1 4
      src/createrelease/createrelease.monkey2
  2. 6 3
      src/mx2cc/buildproduct.monkey2

+ 1 - 4
src/createrelease/createrelease.monkey2

@@ -181,7 +181,7 @@ End
 
 
 Function Main()
 Function Main()
 
 
-	Print "Hello World!"
+	Print "Creating release..."
 
 
 	ChangeDir( AppDir() )
 	ChangeDir( AppDir() )
 	
 	
@@ -198,9 +198,6 @@ Function Main()
 	desktop=String.FromCString( getenv( "HOME" ) )+"/Desktop/"
 	desktop=String.FromCString( getenv( "HOME" ) )+"/Desktop/"
 #endif
 #endif
 	
 	
-	Print "current="+CurrentDir()
-	Print "desktop="+desktop
-	
 	output=desktop+OUTPUT
 	output=desktop+OUTPUT
 
 
 	CopyRelease()
 	CopyRelease()

+ 6 - 3
src/mx2cc/buildproduct.monkey2

@@ -449,12 +449,15 @@ Class GccBuildProduct Extends BuildProduct
 				SaveString( buf.Join( "~n" ),deps )
 				SaveString( buf.Join( "~n" ),deps )
 				
 				
 				uptodate=True
 				uptodate=True
-				
 			Endif
 			Endif
 			
 			
 			If uptodate
 			If uptodate
-			
-				Local lines:=LoadString( deps ).Split( "~n" )
+				
+				Local str:=LoadString( deps )
+				
+				If Not str Return obj
+				
+				Local lines:=str.Split( "~n" )
 				
 				
 				For Local line:=Eachin lines
 				For Local line:=Eachin lines