tis-codeblocks icon

Code::Blocks

Silent install package for Code::Blocks

20.3-5

  • package: tis-codeblocks
  • name: Code::Blocks
  • version: 20.3-5
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Ingrid TALBOT
  • locale: all
  • target_os: windows
  • impacted_process: codeblocks,CbLauncher,cb_share_config,cb_console_runner,cbp2make
  • architecture: all
  • signature_date:
  • size: 151.28 Mo

package           : tis-codeblocks
version           : 20.3-5
architecture      : all
section           : base
priority          : optional
name              : Code::Blocks
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Ingrid TALBOT
description       : Code::Blocks is a free C/C++ and Fortran IDE
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 
impacted_process  : codeblocks,CbLauncher,cb_share_config,cb_console_runner,cbp2make
description_fr    : Code::Blocks est un IDE C/C++ et Fortran gratuit
description_pl    : Code::Blocks to darmowe IDE dla języków C/C++ i Fortran
description_de    : Code::Blocks ist eine kostenlose C/C++ und Fortran IDE
description_es    : Code::Blocks es un IDE gratuito de C/C++ y Fortran
description_pt    : Code::Blocks é um IDE C/C++ e Fortran gratuito
description_it    : Code::Blocks è un IDE gratuito per C/C++ e Fortran
description_nl    : Code::Blocks is een gratis C/C++ en Fortran IDE
description_ru    : Code::Blocks - это бесплатная среда разработки на языках C/C++ и Fortran
audit_schedule    : 
editor            : 
keywords          : C,C++,IDE
licence           : 
homepage          : 
package_uuid      : a5757f97-acec-46a2-9741-1551b5e75996
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.codeblocks.org/changelogs/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 61690b90525dfb58867964a45f0a71aad574cee42e2852229181e376bef7e878
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-01T20:39:05.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : xn/bzXTmEk5mGbTN3gTUrxtGFdwDrzqzBbXBd8n8FG0FUvZH52MA43vArN1DJBVlZywmgR8X3ECFdCIZIWHCS8685RO5bFEJNkwZ+JcrytVS3hFZ/nvmjhM7orVa7+L6mbNxkS0mG9rGfJMNvT9Hwpuj7MuWLsFa2BCcVgx5EHU8fuduBCOIexN5N1L5rD9iy2C2mlhtfDwJ8QVvk9tCTZfzWmA3MWBYasZNzZ5y/zLlEZtarZP/S+xbisi8BuJN3x82NBpUdZzdwt6askdlKoUCKCxlrmlqUzwYQqTQon0pgmnQJzuxtRTBN4P/ZpEoVAQoeHEAeUKu6CwD/j5RwQ==

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    bin_name = glob.glob("codeblocks-*mingw-setup.exe")[0]
    install_exe_if_needed(bin_name, "/S", key="", min_version=control.get_software_version())


def uninstall():
    run(r'"C:\Program Files\CodeBlocks\uninstall.exe" /S')

# -*- coding: utf-8 -*-
from setuphelpers import *
import json

def update_package():
    # Initializing variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    git_repo = "codeblocks"
    url_api = "https://sourceforge.net/projects/codeblocks/best_release.json"

    # Getting latest version from official website
    print("API used is: " + "https://sourceforge.net/projects/codeblocks/best_release.json")
    json_load = json.loads(wgets("https://sourceforge.net/projects/codeblocks/best_release.json", proxies=proxies))
    version = json_load["platform_releases"]["windows"]["filename"].split("/")[-3]
    latest_bin = json_load["platform_releases"]["windows"]["filename"].split("/")[-1]
    url_dl = json_load["platform_releases"]["windows"]["url"]

    # Downloading latest binaries
    print(f"Latest version of {control.name} is: {version}")
    print("Download URL is: %s" % url_dl)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    # Deleting binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)
    
    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
dab230e04c17dd86c7ba5753910fec4fdc87c3fd2b96ca99c9a9acb48aee1fab : WAPT/control
61690b90525dfb58867964a45f0a71aad574cee42e2852229181e376bef7e878 : WAPT/icon.png
862479a6d45b8a36ffc09fc4c63cd0850155088e33bd8cad9075fb6fcb1f43c2 : codeblocks-20.03mingw-setup.exe
6892fb2aed013da65385b27a40ad3e5a1defd30e370435e51f3edb5f84294343 : luti.json
444a6cc9f7546f580358fdb52f2b0741cf547375692f05319ef4b18231bdfb2d : setup.py
a201ec60ea0e00253cf202d3d85a928cff1d3b998f019019ae431364d5cd7550 : update_package.py