# Exclude Files From HLA Release

**URL:** https://discuss.saleae.com/t/exclude-files-from-hla-release/2011
**Category:** Extensions
**Created:** [December 28, 2022, 10:06pm UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011 "2022-12-28T22:06:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![eric.blom](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/eric.blom/32/1251_2.png) [@eric.blom](https://discuss.saleae.com/u/eric.blom)
#### Post date: [December 28, 2022, 10:06pm UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011/1 "2022-12-28T22:06:26Z")

</div>

We are close to making our first release of an HLA. Our repo includes the HLA files as well as some regression test files. Is there a way to exclude the regression test files from the set of files that will be place on the user’s drive when they install our HLA?

---

<div class="post-metadata">

### Author: ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)
#### Post date: [December 28, 2022, 11:05pm UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011/2 "2022-12-28T23:05:52Z")

</div>

@eric.blom Congrats on the milestone! I’m not quite sure I immediately understand your question, however, the only files required to install an HLA are as follows. These are the files you would share with your end users.

> **[High-Level Analyzer (HLA) Extensions](https://support.saleae.com/extensions/high-level-analyzer-extensions#high-level-analyzer-files)**
>
> Learn how to modify your new High Level Analyzer

1. `extension.json`

- Every extension must have this file in its root directory.

- Contains metadata about the extension, and the HLAs and Measurement scripts that are included with the extension.

- See [Extension File Format](https://discuss.saleae.com/extensions/extension-file-format) for more information.

1. `HighLevelAnalyzer.py`

- Python source code for your HLA.

---

<div class="post-metadata">

### Author: ![eric.blom](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/eric.blom/32/1251_2.png) [@eric.blom](https://discuss.saleae.com/u/eric.blom)
#### Post date: [December 28, 2022, 11:17pm UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011/3 "2022-12-28T23:17:31Z")

</div>

@timreyes, we have no problem sharing the files and using them as a “Load Existing Extension…” I’m thinking about when our HLA is published in the Saleae marketplace.

Does the marketplace ignore all files other than those listed in your comment. For example, does that mean we are limited to one PY file and “screenshots/overview.png” can not be used by the README.md?

Below is our file tree.

- README.md
- extension.json
- protocol\_a\_version\_1.py
- protocol\_b\_version\_1.py
- protocol\_b\_version\_2.py
- protocol\_b\_version\_3.py
- screenshots/overview.png (referenced by README.md)
- test/… (regression test files)
- touch\_protocols.py (this is the subclass of HighLevelAnalyser).

---

<div class="post-metadata">

### Author: ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)
#### Post date: [December 29, 2022, 10:51pm UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011/4 "2022-12-29T22:51:20Z")

</div>

@eric.blom Our Extensions Marketplace will include all files in the repository.

Using the “BQ25150 Linear Battery Charger” extension available from the Marketplace as an example, when this extension is installed from our Marketplace, all files in the repository will be stored in the following directory.

> **[GitHub - lvoytek/BQ25150-analyzer: A Saelae Logic 2 extension for viewing I2C...](https://github.com/lvoytek/BQ25150-analyzer)**
>
> A Saelae Logic 2 extension for viewing I2C transactions with a TI BQ25150 Linear Battery Charger - GitHub - lvoytek/BQ25150-analyzer: A Saelae Logic 2 extension for viewing I2C transactions with a ...

![marketplace-ext-contents](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/2X/e/ecf029c1ba22cd82d6015694de5a3fb7468a7e5a.png)

---

<div class="post-metadata">

### Author: ![eric.blom](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/eric.blom/32/1251_2.png) [@eric.blom](https://discuss.saleae.com/u/eric.blom)
#### Post date: [December 30, 2022, 4:34am UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011/5 "2022-12-30T04:34:36Z")

</div>

It sounds like there is no way to exclude files from the repo. Such as extension regression testing files. It would be nice if a .saleaeignore file could be used to exclude files or perhaps some additional information in the extension.json file.

---

<div class="post-metadata">

### Author: ![eric.blom](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/eric.blom/32/1251_2.png) [@eric.blom](https://discuss.saleae.com/u/eric.blom)
#### Post date: [December 30, 2022, 6:39pm UTC](https://discuss.saleae.com/t/exclude-files-from-hla-release/2011/6 "2022-12-30T18:39:01Z")

</div>

I found out that [files can be excluded from a git tag/release](https://stackoverflow.com/questions/45240336/how-to-use-github-release-api-to-make-a-release-without-source-code/58443948#58443948) using a .gitattribute file.
