A tool to publish Business Central apps to Microsoft AppSource
Project description
BC2AppSource
A Python package for publishing Business Central apps to Microsoft AppSource.
Installation
pip install bc2appsource
Usage
Command Line Interface
# Publish an app to AppSource
bc2appsource publish \
--app-file path/to/your/app.app \
--tenant-id your-tenant-id \
--client-id your-client-id \
--client-secret your-client-secret \
--product-name "Your Product Name"
# With library app file
bc2appsource publish \
--app-file path/to/your/app.app \
--library-app-file path/to/library.app \
--tenant-id your-tenant-id \
--client-id your-client-id \
--client-secret your-client-secret \
--product-name "Your Product Name"
Python API
from bc2appsource import AppSourcePublisher
publisher = AppSourcePublisher(
tenant_id="your-tenant-id",
client_id="your-client-id",
client_secret="your-client-secret"
)
# Publish app
result = publisher.publish(
app_file="path/to/your/app.app",
product_name="Your Product Name",
library_app_file="path/to/library.app", # Optional
auto_promote=True
)
if result.success:
print(f"Submission ID: {result.submission_id}")
else:
print(f"Error: {result.error}")
Authentication
You need to register an Azure AD application with the following permissions:
- Microsoft Partner Center API access
- Application permissions for submitting to AppSource
Environment Variables
You can also use environment variables instead of passing credentials:
export AZURE_TENANT_ID=your-tenant-id
export AZURE_CLIENT_ID=your-client-id
export AZURE_CLIENT_SECRET=your-client-secret
GitHub Actions
This package can be used in GitHub Actions workflows:
- name: Install bc2appsource
run: pip install bc2appsource
- name: Publish to AppSource
run: |
bc2appsource publish \
--app-file artifacts/*.app \
--product-name "${{ github.event.repository.name }}"
env:
AZURE_TENANT_ID: ${{ secrets.APPSOURCE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.APPSOURCE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.APPSOURCE_CLIENT_SECRET }}
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bc2appsource-0.1.6.tar.gz.
File metadata
- Download URL: bc2appsource-0.1.6.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab4361a770128e5f1305c3af0c08bb0cbf6914c0d60f32ec53aa4413fc1eabec
|
|
| MD5 |
d56efd631225ce2c6f297f745db1f55e
|
|
| BLAKE2b-256 |
e37dc6fecae06a2773514ff15ef895914b7b5a7b33994b8c9f21da977ec86bcd
|
Provenance
The following attestation bundles were made for bc2appsource-0.1.6.tar.gz:
Publisher:
publish-to-pypi.yml on attieretief/bc2appsource
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bc2appsource-0.1.6.tar.gz -
Subject digest:
ab4361a770128e5f1305c3af0c08bb0cbf6914c0d60f32ec53aa4413fc1eabec - Sigstore transparency entry: 325065055
- Sigstore integration time:
-
Permalink:
attieretief/bc2appsource@8889561b12980e56775d13c3c4080dbc34fdcd04 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/attieretief
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@8889561b12980e56775d13c3c4080dbc34fdcd04 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bc2appsource-0.1.6-py3-none-any.whl.
File metadata
- Download URL: bc2appsource-0.1.6-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e619b3f67a47e2a17e940140868ebfd133a8ce4892fcf774c988ba9a1c5a3b
|
|
| MD5 |
fc848f274474738888e61772e40a6a7c
|
|
| BLAKE2b-256 |
710430d8a5d1ed792d120bef28b30ec592e0a9326fcdf1c1ef04ca58a0dcc068
|
Provenance
The following attestation bundles were made for bc2appsource-0.1.6-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on attieretief/bc2appsource
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bc2appsource-0.1.6-py3-none-any.whl -
Subject digest:
74e619b3f67a47e2a17e940140868ebfd133a8ce4892fcf774c988ba9a1c5a3b - Sigstore transparency entry: 325065077
- Sigstore integration time:
-
Permalink:
attieretief/bc2appsource@8889561b12980e56775d13c3c4080dbc34fdcd04 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/attieretief
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@8889561b12980e56775d13c3c4080dbc34fdcd04 -
Trigger Event:
push
-
Statement type: