# Building Pozi Connect

# Requirements

Repositories

Software

# Repository Configuration

Set up symlink folder called tasks in PoziConnect repo that points to PoziConnectConfig repo. Example:

mklink /D C:\Users\Simon\GitHub\PoziConnect\tasks C:\Users\Simon\GitHub\PoziConnectConfig

# Prepare PoziConnectConfig Repository

# Prepare PoziConnect Repository

  • if there's been an update of the GDAL library, update setenv_python.bat
  • update PoziWebsite/pozi-connect/history.md with dot points about recent changes (identified above)
  • if logo has changed since last release, run PoziConnect\PoziConnect.bat to trigger regeneration of gui_logo_png.py
  • run PoziConnect\build.bat; type in new version number when prompted
  • embed thumbnail logo in PoziConnect.exe
    • open Resource Hacker
    • File > Open > PoziConnect\dist\PoziConnect.exe
    • select Icon
    • Action > Replace Icon > Open file with new icon > PoziConnect\app\PoziConnect\gui\Groundtruth.ico > Replace
    • Save, Close
    • delete PoziConnect\dist\PoziConnect_original.exe
  • if file PoziConnect\dist\output\PoziConnect.log or folder PoziConnect\dist\backup exist, delete them
  • open GitHub app to commit and sync PoziConnect repo
  • delete any outdated/unused GDAL folders from the vendor folder

# Build Installer

  • run Advanced Installer
  • File > Open > G:\My Drive\Products\Pozi Connect\Installer\PoziConnect.aip
  • Product Details > Product version > type latest release number (above)
  • when prompted about the Product Code, select 'Generate new'
  • Home > Build
  • check Output log for location of output msi file

# Create Zip Distribution

Clients in locked-down IT environments may prefer a simple zip file instead of the installer. Zip up the contents of PoziConnect\dist and rename the zip file from 'dist.zip' to PoziConnect-x.x.x.zip.

# Publish Release

# GitHub

Example:

Welcome to Pozi Connect v2.9.4

**Click the .msi link below to download this release.**

This May 2022 release contains the following changes since the March 2022 (v2.9.3) release:

* update web links
* new `.zip` distribution
* configuration updates for Port Phillip, Central Goldfields, Loddon, Strathbogie

See a complete history of all of Pozi Connect's changes [here](https://github.com/pozi/PoziConnectConfig/commits/master/~Shared/).

For installation instructions, visit [https://pozi.com/pozi-connect/installation/](https://pozi.com/pozi-connect/installation/).


# Pozi Connect/Server

This is the alternative distribution which, for clients who have this installed, will auto-update from the zip file we upload.

  • create zip from files/folders within PoziConnect\dist\ (ie, no overall top-level folder)
  • rename zip file (eg PoziConnectM1.2.x.x.zip)
  • upload to https://s3.console.aws.amazon.com/s3/buckets/connect.pozi.com/m1/
  • set "Manage public permissions" to "Grant public read access to this object(s)"
  • download manifest-m1-production.json
  • edit with latest date and version number
  • upload back to S3, make public

# Blog

  • duplicate previous Pozi Connect release blog post
  • update details
  • publish
  • copy content as HTML to clipboard

# MailChimp