Commit aaedd77b authored by Olivier Cornu's avatar Olivier Cornu
Browse files

Replace pkg/win32/make_standalone.bat with Makefile target (experimental).

Third and last step into supporting all architectures: finishing with win32.
Note: support is untested.
parent 82ff052b
......@@ -16,6 +16,7 @@ BUILD=$(PYROPATH)/build
RPMBUILDIR=$(BUILD)/pyromaths-rpm
DEBUILDIR=$(BUILD)/pyromaths-$(VERSION)
REPOBUILDIR=$(BUILD)/repo_debian
EXEBUILDIR=$(BUILD)/pyromaths-exe
# Build files in root folder
FILES=AUTHORS COPYING NEWS pyromaths README setup.py
# Mac app folder
......@@ -37,6 +38,9 @@ help:
# Usage (Mac):
# $$ make app # Make standalone application
#
# Usage (Windows):
# $$ make exe # Make standalone executable (experimental)
#
# And also:
# $$ make version # Print target version
# $$ make clean # Clean source tree
......@@ -174,5 +178,19 @@ app: clean
# ... Remove all architectures but x86_64..."
ditto --rsrc --arch x86_64 --hfsCompression $(DIST)/Pyromaths.app $(DIST)/Pyromaths-x86_64.app
exe:
# Make standalone Windows executable
# ... Remove previous builds
rmdir /s /q $(EXEBUILDIR)
rm $(DIST)/Pyromaths-*-win32.exe
# ... Create stripped-down sources
md $(EXEBUILDIR)
xcopy data $(EXEBUILDIR)/data /i /s
xcopy src $(EXEBUILDIR)/src /i /s
copy $(FILES) $(EXEBUILDIR)
move $(EXEBUILDIR)/pyromaths $(EXEBUILDIR)/Pyromaths.py
# ... Create standalone exe
cd $(EXEBUILDIR) && c:/Python27/python.exe setup.py innosetup -b $(BUILD) -d $(DIST)
all: tbz tgz egg rpm deb
REM Creer l'installateur de Pyromaths pour Windows
C:
cd "C:\Users\Jerome\Desktop"
md pyromaths
cd pyromaths
xcopy z:\pyromaths\data data /i /s
xcopy z:\pyromaths\src src /i /s
copy z:\pyromaths\* .
move pyromaths Pyromaths.py
c:\Python27\python.exe setup.py innosetup
copy dist\Pyromaths-*-win32.exe z:\
cd ..
rmdir /s /q pyromaths
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment