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.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pdc_bot_updater-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c8203e4bbf0831299801e4938784635a843bebe46cbf3e7ad4dfd413216743 |
|
MD5 | 36e7c83e48425719b330a71e81b217c7 |
|
BLAKE2b-256 | 7e99c41172ee05b39f1bfecf0855d1c352b552c56a699ab5fd8d4d905bf0e915 |