Installer

이상학·2021년 11월 6일
0

Toyproejct

목록 보기
1/2

패키징 도구 pyinstaller
Windows
py2exe

'''
@author 저작자 이름
@section LICENSE 
저작권 상세내용
'''
from setuptools import setup, find_packages
from greenflare.core.defaults import Defaults
import py2exe
with open('README.md', 'r') as fh:
long_description = fh.read()

setup(
  name='PLAYPLZ',
  version=Defaults.version,
  description='BEYONDIMENSION.INC Control Console',
  long_description=long_description,
  long_description_content_type='text/markdown',
  url='http://playplz.live',
  project_urls={
      'Source': 'https://github.com/beb7/gflare-tk/',
      'Tracker': 'https://github.com/beb7/gflare-tk/issues',
  },
  author='LEE SANGHAK',
  author_email='eaa0305@beyondimension.co.kr',
  license='GPLv3+',
  classifiers=[
      'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
      'Programming Language :: Python :: 3',
      'Programming Language :: Python :: 3.7',
      'Programming Language :: Python :: 3.8',
      'Programming Language :: Python :: 3.9',
      'Topic :: Internet :: WWW/HTTP',
      'Operating System :: OS Independent',
  ],
  python_requires='>=3.7',
  packages=find_packages(),
  include_package_data=True,
  install_requires=['requests', 'lxml', 'cssselect', 'ua-parser', 'pillow', 'packaging'],
  entry_points={
      'console_scripts': [
          'greenflare=greenflare.app:main',
      ]
  },
  options = {'py2exe': {'bundle_files': 1}},
  zipfile = None,

)

Mac
py2app

'''
@author 저작자 이름 쓰는곳
@section LICENSE
저작권 상세사항 쓰는 곳
'''
from setuptools import setup, find_packages
from greenflare.core.defaults import Defaults
import py2exe
with open('README.md', 'r') as fh:
long_description = fh.read()
setup(
name='PLAYPLZ',
version=Defaults.version,
description='BEYONDIMENSION.INC Control Console',
long_description=long_description,
long_description_content_type='text/markdown',
url='http://playplz.live',
project_urls={
'Source': 'https://github.com/beb7/gflare-tk/',
'Tracker': 'https://github.com/beb7/gflare-tk/issues',
},
author='LEE SANGHAK',
author_email='eaa0305@beyondimension.co.kr',
license='GPLv3+',
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP',
'Operating System :: OS Independent',
],
python_requires='>=3.7',
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'lxml', 'cssselect', 'ua-parser', 'pillow', 'packaging'],
entry_points={
'console_scripts': [
'greenflare=greenflare.app:main',
]
},
options = {'py2exe': {'bundle_files': 1}},
zipfile = None,
)

INSTALLER 설치

  1. installer.iss
    .iss" (meaning Inno Setup Script) extension
    이노셋업 프로그램 활용

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define VERSION "0.98.1"
#define MyAppName "Greenflare SEO Web Crawler"
#define MyAppShortName "Greenflare"
#define MyAppProjectFileDesc "Greenflare Database File"
#define MyAppPublisher "Greenflare"
#define MyPublisherURL "https://greenflare.io/"
#define MySupportURL "https://greenflare.io/"
#define MyAppExeName "greenflare.exe"

[Setup]

AppName={#MyAppName}
AppVersion={#VERSION}
VersionInfoVersion={#VERSION}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyPublisherURL}
AppSupportURL={#MySupportURL}
AppCopyright=Copyright (c) 2021 {#MyAppPublisher}
DefaultDirName={pf}{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=LICENSE
OutputBaseFilename=GreenflareSEOCrawler-{#VERSION}
ArchitecturesInstallIn64BitMode="x64"
ArchitecturesAllowed="x64"
ChangesAssociations=yes
ChangesEnvironment=yes
Compression=lzma
SolidCompression=yes
SetupIconFile=greenflare\resources\playplz.ico
UninstallDisplayIcon={app}{#MyAppExeName}

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "fileassoc"; Description: "{cm:AssocFileExtension,{#MyAppName},.gflaredb}"; GroupDescription: "{cm:AdditionalIcons}";
; Name: "firewall"; Description: "Add an exception to the Windows Firewall for optionally sending anonymized usage and error information."; GroupDescription: "{cm:AdditionalIcons}";

[InstallDelete]
; Remove previous installed versions of OpenShot
Type: filesandordirs; Name: "{app}*"
Type: dirifempty; Name: "{app}*"

[Registry]
Root: HKCR; Subkey: ".gflaredb"; ValueData: "{#MyAppName}"; Flags: uninsdeletevalue; ValueType: string; ValueName: ""
Root: HKCR; Subkey: "{#MyAppName}"; ValueData: "Program {#MyAppName}"; Flags: uninsdeletekey; ValueType: string; ValueName: ""
Root: HKCR; Subkey: "{#MyAppName}\DefaultIcon"; ValueData: "{app}{#MyAppExeName},0"; ValueType: string; ValueName: ""
Root: HKCR; Subkey: "{#MyAppName}\shell\open\command"; ValueData: """{app}{#MyAppExeName}"" ""%1"""; ValueType: string; ValueName: ""

[Files]
; Add all frozen files from cx_Freeze build
Source: "build\exe.win-amd64-3.8*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs

[Icons]
Name: "{commonprograms}{#MyAppName}"; Filename: "{app}{#MyAppExeName}"
Name: "{commondesktop}{#MyAppName}"; Filename: "{app}{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

  1. INSTALL FACTORY
profile
기억의 지배장

0개의 댓글