tis-git
2.26.0-1
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
3084 downloads

Description
- package : tis-git
- version : 2.26.0-1
- architecture : x64
- categories : Development,Utilities
- maintainer : WAPT Team,Jimmy PELÉ
- description : Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
- locale :
- target_os : windows
- min_os_version : 6.1
- max_os_version :
- min_wapt_version : 1.5
- sources : https://github.com/git-for-windows/git/releases
- installed_size : 261357568
- impacted_process : git-bash.exe
- description_fr : Git est un logiciel de gestion de versions décentralisé
- description_pl : Git – rozproszony system kontroli wersji.
- description_de : Git ist eine freie Software zur verteilten Versionsverwaltung von Dateien.
- description_es : Git es un software de control de versiones
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Software Freedom Conservancy
- licence : GPLv2
- signature_date : 2020-05-18T09:49:10.225000
- Homepage : https://git-scm.com/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_string = 'Git-%s-64-bit.exe'
bin_end = '-64-bit.exe'
silent_arguments = '/LOADINF="git.inf" /VERYSILENT /CLOSEAPPLICATIONS /NORESTART'
uninstall_key = 'Git_is1'
def install():
# Specific app values
package_version = control.version.split('-',1)[0]
# Getting the used storage on programfiles before installation (place it on the top)
diskfreespacebefore = get_disk_free_space(programfiles)
#print(uninstall_key)
install_exe_if_needed(bin_name_string % package_version
,silentflags=silent_arguments
,key=uninstall_key
,min_version=package_version)
# Return used storage of the installation. (place it on the bottom)
diskfreespaceafter = get_disk_free_space(programfiles)
difffreespace = diskfreespacebefore - diskfreespaceafter
print ("Storage used: " + str(difffreespace))
def update_package():
print('Download/Update package content from upstream binary sources')
import json,platform
# Update transition from BeautifulSoup 3 to 4
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
# Getting proxy informations from WAPT settings
proxy = {}
if platform.system()=='Windows' and isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
# Specific app values
app_name = control.name
url_api = 'https://api.github.com/repos/git-for-windows/git/releases/latest'
# Getting latest informations from Github API
json_load = json.loads(wgets(url_api,proxies=proxy))
for download in json_load['assets']:
if download['browser_download_url'].endswith(bin_end):
url_dl = download['browser_download_url']
break
version = ((json_load['tag_name']).replace('.windows.1','')).replace('v','')
latest_bin = bin_name_string % version
print('Latest ' + app_name + ' version is: ' + version)
print('Download url is: ' + url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Change version of the package
print('Writing ' + version + '-0 in WAPT\\control')
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = version + '-0'
pe.save_control_to_wapt(os.getcwd())
print('Update package done. You can now build-upload your package')
else:
print('This package is already up-to-date')
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
if bin_in_dir != latest_bin :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
if __name__ == '__main__':
update_package()
[["WAPT/icon.png","4a6e5031edc6e22a06cb5f12e89dea8738b88839c2cb99e2e7e0d9df345e2252"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],[".vscode/settings.json","7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012"],[".vscode/launch.json","a9a5d4f2034c62f5ee173b543fbce9852483abfe0db40027f09d17e9cf69debb"],["Git-2.26.0-64-bit.exe","c8cd522b8a1eacd421a10591227cc6279f31485876462cd9fc335914584429f5"],["git.inf","fa85a3efbdcbea634de3f765250b40e163d6178dccff3f46e17a18aa55e3793b"],["setup.py","ae6cc4182152c2f6c096253009152dd94881834ca97bc3cf26c479f4bf0a97c7"],["WAPT/wapt.psproj","fdd9db03cb28a75c9b2af4f5154e55cce7feaa098404f37d3fe5c6cdfb483729"],["WAPT/control","89c240dd1dcbe5a38240eb597ad3ae6fc64ca471c56302996bb982a7230140dd"],["WAPT/changelog.txt","ba10f9ec6a911bd2e35a51dc0be36ad2fed4447a75bb91e506e3e1ec158d85c6"]]