Преглед изворни кода

[AppVeyor] fix choco package

Andy Li пре 8 година
родитељ
комит
dbd7afa5ef
2 измењених фајлова са 4 додато и 5 уклоњено
  1. 1 4
      Makefile.win
  2. 3 1
      appveyor.yml

+ 1 - 4
Makefile.win

@@ -57,10 +57,7 @@ package_choco:
 	mkdir -p OUTPUT
 	7z x -y out/$(PACKAGE_FILE_NAME)_bin.zip -oout > log.txt || type log.txt
 	mv out/$(PACKAGE_FILE_NAME) out/choco
-	sed -e 's/@SNAPSHOT_VERSION@/$(HAXE_VERSION)-SNAP$(COMMIT_SHA)/g' extra/choco/haxe.nuspec > out/choco/haxe.nuspec
+	sed -e 's/@SNAPSHOT_VERSION@/$(HAXE_VERSION)-SNAP$(COMMIT_DATE)/g' extra/choco/haxe.nuspec > out/choco/haxe.nuspec
 	cd out/choco && choco pack
 	mv out/choco/haxe.*.nupkg out
 	rm -rf out/choco
-	if [ -n "$$APPVEYOR" ]; then \
-	cd out/choco && appveyor PushArtifact haxe.*.nupkg; \
-	fi

+ 3 - 1
appveyor.yml

@@ -55,6 +55,7 @@ build_script:
     - 'set HAXEPATH=%APPVEYOR_BUILD_FOLDER%'
     - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win package_bin"'
     - '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win package_choco"'
+    - move out\haxe.*.nupkg .
     - dir %APPVEYOR_BUILD_FOLDER%\out
     - cd %APPVEYOR_BUILD_FOLDER%/tests/
     - mkdir "%HAXELIB_ROOT%"
@@ -72,4 +73,5 @@ test_script:
     - neko RunCi.n
 
 artifacts:
-    - path: out/*.zip
+    - path: 'out/*.zip'
+    - path: '*.nupkg'