Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 29 lines (24 sloc) 1.08 KB
from os import system, remove, rename, walk
from os.path import exists
from shutil import move, rmtree, copytree, copy
from distutils.dir_util import copy_tree
from .build import ver, bld_dpath, branch, InsideDir, TempFile
from .deployng import bld_ng
def bld_windows(target, source, env):
bld_ng(env['APPNAME'], win=True)
src = '{dst_dir}../dist/{appname}-0.0.0_win_amd64.tar.xz'
tgt_file = '{dst_dir}{appname}-{version}-windows.tar.xz'
src_fmt = src.format(dst_dir=bld_dpath, appname=env['APPNAME'],
version=branch)
tgt_fmt = tgt_file.format(dst_dir=bld_dpath, appname=env['APPNAME'],
version=branch)
move(src_fmt, tgt_fmt)
src = '{dst_dir}../build/{appname}-0.0.0.exe'
tgt_file = '{dst_dir}{appname}-{version}-windows.exe'
src_fmt = src.format(dst_dir=bld_dpath, appname=env['APPNAME'],
version=branch)
tgt_fmt = tgt_file.format(dst_dir=bld_dpath, appname=env['APPNAME'],
version=branch)
move(src_fmt, tgt_fmt)
rmtree('build')
rmtree('dist')
You can’t perform that action at this time.