pdc shipment aplication bot
Project description
pdc_updater
implementasi auto updater dengan memakai cloud storage google
set environtment
set GOOGLE_APPLICATION_CREDENTIALS=credentials.json
Example
Publising Aplication
from pdc_bot_updater.publisher.publish import configure_client, AppArchiver
bucket_id = 'artifact'
folder_app = 'aplikasi_bot'
configure_client(bucket_id)
archiver = AppArchiver(folder_app)
archiver.get_meta()
archiver.upload_archive(f'dist/aplication.zip', version='1.0.0')
Updating App
from pdc_bot_updater.client.updater import Updater
bucket_id = 'artifact'
folder_app = 'aplikasi_bot'
updater = Updater(folder_app, bucket_id)
updater.check_update()
updater.detach_process(['application.exe'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdc_bot_updater-1.2.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pdc_bot_updater-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d811c0fb1cca82d3becfdf45c31bd3666807a18c047ef785d6265c5ee7a9b57 |
|
MD5 | fb635abda3d4ff22a9d0cfdf878afe35 |
|
BLAKE2b-256 | 281fbf92d20621332b5bd213124fbbddd15613853db777d3f37c8e513f186507 |