Updated Wagic Version and Python scripts

Updated Wagic to version 0.24.0 and the Python scripts to use the print syntax for Python 3 so the files could be build.
This commit is contained in:
Eduardo MG
2023-03-26 22:30:20 -06:00
parent b23961c0ee
commit 889259a3ef
4 changed files with 11 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ def createStandardResFile(filename):
if not filename:
filename = getFilename() + '.zip'
createResZipFile( filename )
print >> sys.stderr, 'Created Resource Package for Standard Distribution: {0}'.format( filename)
print('Created Resource Package for Standard Distribution: {0}'.format(filename), file=sys.stderr)
def createIosResFile(filename):
print('Preparing Resource Package for iOS')
@@ -61,7 +61,7 @@ def createIosResFile(filename):
zip_file.write("../../iOS/Res/rules/modrules.xml", "rules/modrules.xml", zipfile.ZIP_STORED)
zip_file.close()
print >> sys.stderr, 'Created Resource Package for iOS Distribution: {0}'.format( filename)
print('Created Resource Package for Standard Distribution: {0}'.format(filename), file=sys.stderr)
class ZipUtilities:

View File

@@ -26,15 +26,15 @@ def getFilename(filename):
return filename
def createStandardResFile():
print "Creating Resource File"
print("Creating Resource File")
cmd = 'python createResourceZip.py -n ' + getFilename('core') + '.zip'
os.chdir("Res")
os.system(cmd)
os.chdir("..")
print "Creating Windows Package File"
print("Creating Windows Package File")
filename = 'Wagic-windows.zip'
createWindowsZipFile( filename )
print >> sys.stderr, 'Created Windows Package: {0}'.format( filename)
#print(sys.stderr, 'Created Windows Package: {0}'.format( filename))
class ZipUtilities:
@@ -52,10 +52,10 @@ class ZipUtilities:
if file != '.svn':
full_path = os.path.join(folder, file)
if os.path.isfile(full_path):
print 'File added: ' + str(full_path)
#print('File added: ' + str(full_path))
zip_file.write(full_path)
elif os.path.isdir(full_path):
print 'Entering folder: ' + str(full_path)
#print('Entering folder: ' + str(full_path))
self.addFolderToZip(zip_file, full_path)

View File

@@ -1,6 +1,6 @@
#build.number.properties (normally this file is maintained by build.xml)
#Sun, 20 May 2020 11:56:35 +0200
build.major=0
build.minor=23
build.point=1
build.minor=24
build.point=0

View File

@@ -13,8 +13,8 @@ Mod by: Vitty85
/* Wagic versions */
#define WAGIC_VERSION_MAJOR 0
#define WAGIC_VERSION_MEDIUM 23
#define WAGIC_VERSION_MINOR 1
#define WAGIC_VERSION_MEDIUM 24
#define WAGIC_VERSION_MINOR 0
#define VERSION_DOT(a, b, c) a ##.## b ##.## c
#define VERSION_WITHOUT_DOT(a, b, c) a ## b ## c