Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
223 changes: 223 additions & 0 deletions .github/images/architecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 3 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
needs: build
runs-on: [self-hosted, Windows, Office]
env:
# access-add-in/deployment/AddIn-Config.json uses paths relative to OUT_DIR (..\lib)
LIB_DIR: ${{ github.workspace }}\build\lib
OUT_DIR: ${{ github.workspace }}\build\out
APP_CONFIG_FILE: ${{ github.workspace }}\build\app-config.json
steps:
- name: "Checkout"
uses: actions/checkout@v7
Expand Down Expand Up @@ -98,25 +98,12 @@ jobs:
$content = $content -replace 'DEVMODE\s*=\s*1', 'DEVMODE = 0'
[System.IO.File]::WriteAllText($vbeProjectFile, $content, [System.Text.UTF8Encoding]::new($true))

- name: "Create app config (load files into usys_AppFiles)"
shell: pwsh
run: |
$iconFile = Join-Path $env:GITHUB_WORKSPACE 'access-add-in\resources\ACLib.ico'
$config = @{
Procedures = @(
@{ Name = 'ImportAccUnitFilesFromFolder'; Parameters = @($env:LIB_DIR) },
@{ Name = 'ImportAppIconFile'; Parameters = @($iconFile) }
)
}
$config | ConvertTo-Json -Depth 5 | Set-Content -Path $env:APP_CONFIG_FILE -Encoding utf8
Get-Content -Path $env:APP_CONFIG_FILE

- name: "Build AccUnitLoader.accda"
uses: AccessCodeLib/msaccess-vcs-build@v2.0.0
with:
source-dir: "access-add-in/source"
target-dir: "build/out"
app-config: ${{ env.APP_CONFIG_FILE }}
app-config: "access-add-in/deployment/AddIn-Config.json"
timeout-minutes: 10

- name: "Verify usys_AppFiles"
Expand Down Expand Up @@ -161,7 +148,7 @@ jobs:
# Add-in version major.minor.PPCC.date -> zip name major.minor.patch.CC (as in earlier releases)
$version = '{0}.{1}.{2}.{3}' -f $parts[1].Value, $parts[2].Value, [int]$parts[3].Value, $parts[4].Value
$zipFile = Join-Path $env:GITHUB_WORKSPACE "build\AccUnitLoader.$version.Access.zip"
Compress-Archive -Path (Join-Path $env:OUT_DIR 'AccUnitLoader.accda'), 'access-add-in/AccUnitLoader_Install.vbs' -DestinationPath $zipFile -Force
Compress-Archive -Path (Join-Path $env:OUT_DIR 'AccUnitLoader.accda') -DestinationPath $zipFile -Force
"zip-file=$zipFile" >> $env:GITHUB_OUTPUT

- name: "Upload build artifact"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ For more informations see [Wiki](https://github.com/AccessCodeLib/AccUnit/wiki)
* For 32 and 64 Bit Office/Access
* Run COM regfree (with [Access Add-In](https://github.com/AccessCodeLib/AccUnit/tree/main/access-add-in) or [Excel Add-In](https://github.com/AccessCodeLib/AccUnit/tree/main/excel-add-in))

### Architecture
![AccUnit architecture](.github/images/architecture.svg)

### Dev state
* Run tests
* Tests can started by [Access-Add-In](https://github.com/AccessCodeLib/AccUnit/tree/main/access-add-in) or [Excel Add-In](https://github.com/AccessCodeLib/AccUnit/tree/main/excel-add-in)
Expand Down
6 changes: 3 additions & 3 deletions access-add-in/#readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Installing the add-in
1. Run AccUnitLoader_Install.vbs
1. Open AccUnitLoader.accda from the release zip and click 'Install Add-in' in the install form.

The add-in is copied to %appdata%\Microsoft\AddIns.
The script lets you choose whether the add-in is used as accda or compiled to accde.
The add-in is copied to %appdata%\Microsoft\AddIns and registered as menu add-in.
Check 'Install Add-in as accde' to install a compiled add-in.
2. In Access, install the add-in 'ACLib AccUnit Loader' via Database Tools -- Add-ins -- Add-in Manager.

## Preparing an application for AccUnit
Expand Down
Loading