Exemplo n.º 1
0
def setupWindows():
    setup(  #stump: these arguments interfere with the version tagging code,
        #  but they don't really do anything important anyway.  When the
        #  version tagging code was modified, they suddenly became a valid
        #  source of info for py2exe to synthesize a version info resource
        #  of its own, which supersedes the one specified further down.
        #version = Version.VERSION,
        #description = "Rockin' it Oldskool!",
        #name = Version.appNameSexy(),
        #url = Version.URL,
        windows=[{
            "script":
            "FoFiX.py",
            "icon_resources": [(1, "fofix.ico")],
            "other_resources": [(
                RT_VERSION,
                1,
                VersionResource(
                    #stump: the parameter below must consist only of up to four numerical fields separated by dots
                    Version.VERSION,
                    file_description="Frets on Fire X",
                    legal_copyright=
                    r"© 2008-2009 FoFiX Team.  GNU GPL v2 or later.",
                    company_name="FoFiX Team",
                    internal_name="FoFiX.exe",
                    original_filename="FoFiX.exe",
                    product_name=Version.appNameSexy(),
                    #stump: when run from the exe, FoFiX will claim to be "FoFiX v" + product_version
                    product_version=Version.version()).resource_bytes())]
        }],
        zipfile="data/library.zip",
        data_files=dataFiles,
        options=options)
Exemplo n.º 2
0
def setupWindows():
    setup(
        version=Version.version(),
        description="Rockin' it Oldskool!",
        name="Frets on Fire",
        url="http://www.unrealvoodoo.org",
        windows=[{
            "script":
            "FretsOnFire.py",
            "icon_resources": [(1, "fof.ico")],
            "other_resources": [(
                RT_VERSION,
                1,
                VersionResource(
                    #stump: the parameter below must consist only of up to four numerical fields separated by dots
                    fullVersionString[
                        7:12],  # extract "x.yyy" from "FoFiX vx.yyy ..."
                    file_description="Frets on Fire X",
                    legal_copyright=
                    r"© 2008-2009 FoFiX Team.  GNU GPL v2 or later.",
                    company_name="FoFiX Team",
                    internal_name="FretsOnFire.exe",
                    original_filename="FretsOnFire.exe",
                    product_name="FoFiX",
                    #stump: when run from the exe, FoFiX will claim to be "FoFiX v" + product_version
                    product_version=fullVersionString[
                        7:]  # remove "FoFiX v" from front
                ).resource_bytes())]
        }],
        zipfile="data/library.zip",
        data_files=dataFiles,
        options=options)
Exemplo n.º 3
0
                return 0
            return __orig_isSystemDLL(pathname)
        py2exe.build_exe.isSystemDLL = isSystemDLL

        setup_args.update({
          'zipfile': "data/library.zip",
          'windows': [
            {
              "script":          "FoFiX.py",
              "icon_resources":  [(1, "../win32/fofix.ico")],
              "other_resources": [(RT_VERSION, 1, VersionResource(
                #stump: the parameter below must consist only of up to four numerical fields separated by dots
                Version.versionNum(),
                file_description="Frets on Fire X",
                legal_copyright=r"© 2008-2013 FoFiX Team.  GNU GPL v2 or later.",
                company_name="FoFiX Team",
                internal_name="FoFiX.exe",
                original_filename="FoFiX.exe",
                product_name=Version.PROGRAM_NAME,
                #stump: when run from the exe, FoFiX will claim to be "FoFiX v" + product_version
                product_version=Version.version()
              ).resource_bytes())]
            }
          ]
        })
elif sys.platform == 'darwin':
    try:
        import py2app
    except ImportError:
        if 'py2app' in sys.argv:
            print >>sys.stderr, 'py2app must be installed to create .app bundles.'
            sys.exit(1)