Compare commits

..

35 Commits
v1 ... main

Author SHA1 Message Date
Dmitry Makarenko
cd72004a2d Rebuild actions with aarch64 target
Migrating to arm based mac runner
2025-11-11 19:36:40 +03:00
Dmitry Makarenko
08964cfb21 Deadsnakes no longer supports focal 2025-10-25 14:37:55 +03:00
Dmitry Makarenko
164839920c
Add GitHub Actions support for Windows on ARM (WoA)
Merge pull request #4 from vask2108/add_woa_git_runner_actions
2025-06-17 13:53:29 +03:00
Vasanth Karanam
7699d6d6c7 Add GitHub Actions support for Windows on ARM (WoA)
The python version is updated to 3.11 as there is no python 3.10 available for
WoA.
2025-06-17 11:33:22 +01:00
Dmitry Makarenko
e131a5ca08 Update BUILDING section of the README.md 2025-05-26 15:07:18 +03:00
Dmitry Makarenko
e565362b4a Update dependencies action to handle linux running in docker 2025-05-26 14:04:04 +03:00
Dmitry Makarenko
a6f13092aa Update dependencies action to handle linux running in docker 2025-05-22 14:59:35 +03:00
Dmitry Makarenko
3dfd97a830 Use signing service to sign windows binaries 2025-05-21 11:40:16 +03:00
Vitaly Sverchinsky
d3d18d6f15 Rebuild actions 2024-07-12 14:53:52 +03:00
kryksyh
8a24ee100b Upload all files for a given artifact at once 2024-07-12 14:40:15 +03:00
Vitaly Sverchinsky
f5f79d0932 Update dependencies, fix warnings 2024-07-12 12:36:15 +03:00
Vitaly Sverchinsky
f67e5fe0a3 Add artifact upload log trace 2024-07-10 15:02:28 +03:00
Vitaly Sverchinsky
92c476ccb8 Rebuild volume.node with x64 target 2024-07-10 10:51:30 +03:00
Vitaly Sverchinsky
be7e546c5a Reset simple-plist version to 1.1.0 2024-07-09 23:10:41 +03:00
Vitaly Sverchinsky
9ea03f42d6 Attempt to fix acitons dependencies 2024-07-09 13:45:16 +03:00
Vitaly Sverchinsky
4974ae3406 Attempt to fix package action failure 2024-07-09 10:39:40 +03:00
Vitaly Sverchinsky
b87b33a3f9 Update actions binaries (Attempt #2) 2024-07-09 00:30:30 +03:00
Vitaly Sverchinsky
a816c66881 Update actions binaries 2024-07-08 18:37:33 +03:00
Vitaly Sverchinsky
9bc0e2ae7e Update conan to 2.4.0 2024-06-07 11:59:08 +03:00
Dmitry Vedenko
1d53109dbf
Apparently, hdiutil uses extensions to determine image type 2024-03-26 14:35:46 +03:00
Dmitry Vedenko
0c0c7d9e58
Copy temp dmg to ensure that the file is not locked 2024-03-26 13:20:11 +03:00
Dmitry Vedenko
6eb5219d0d
Disable Spotlight while DMG is created 2024-03-26 13:19:42 +03:00
Dmitry Vedenko
5dee4e7a97
Retry every hdiutil operation
On newer macOS version hdiutil fails even more often
2024-03-26 12:57:20 +03:00
Dmitry Vedenko
71e220d61c
Never fail on hdiutil detach 2024-03-01 18:28:28 +03:00
Dmitry Vedenko
07887c132a
Guard against hdiutil failure on create 2024-03-01 01:21:56 +03:00
Dmitry Vedenko
eb9b5aea56
Disable failures related to the notarisation 2024-02-29 22:49:12 +03:00
Dmitry Vedenko
e807b92748
Update conan to 2.1.0 2024-02-29 21:19:05 +03:00
Dmitry Vedenko
fe42ecf64f
Fixes python version 2024-02-29 21:13:14 +03:00
Dmitry Vedenko
655f4d9037
Change the python setup 2024-02-29 21:03:58 +03:00
Dmitry Vedenko
01503fed15
Updates the notarisation process 2024-02-29 20:50:18 +03:00
Dmitry Vedenko
924119fc8c
Force apt update when installing GCC 11 2023-07-17 13:45:30 +03:00
Dmitry Vedenko
46da6485c4
Adds missing dependency on Linux 2023-07-14 15:55:32 +03:00
Dmitry Vedenko
91655062ef
Fixes Conan cache cleanup 2023-06-26 13:07:19 +03:00
Dmitry Vedenko
e04c171711
Install Conan 2 on CI 2023-06-23 21:53:46 +03:00
Dmitry Vedenko
a79ab34704
Fixes 'bin' path for macOS and Linux 2023-05-02 11:52:20 +03:00
27 changed files with 8016 additions and 11427 deletions

21
.github/workflows/package.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Package
on:
workflow_dispatch:
jobs:
package:
runs-on: macos-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: '20.x'
architecture: x64
- uses: actions/checkout@v4
with:
ref: conan2
- run: npm install
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

View File

@ -87,4 +87,24 @@ Supported parameters:
* `default_channel`: Channel to generate package for.
## Building Actions
Building a GitHub suitable package is only possible on macOS now.
Pre-requisites:
* macOS on Intel or Apple Silicon with Rosetta 2
* Node.js 20 running in i386 mode
* NPM 9
NOTE: The actions should be built in i386 mode to be able to run on Github-CI Runner.
Setting up i386 Node.js on Apple Silicon can be done by running the following command in the terminal:
```bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
# From Rosetta Terminal (tick checkbox in Terminal right click menu -> Get Info -> Open using Rosetta)
nvm install 20
nvm use 20
```
To build the actions, run the following commands in the root of the repository:
```bash
npm install
```

View File

@ -20,11 +20,11 @@ inputs:
description: 'Build type. Valid values are: Debug, Release, RelWithDebInfo, MinSizeRel'
required: false
default: RelWithDebInfo
windows_certificate:
description: 'BASE64 of the Windows code signing certificate PFX file'
windows_code_signing_access_key_id:
description: 'Access key ID for the Windows code signing service'
required: false
windows_certificate_password:
description: 'Password for the Windows code signing certificate PFX file'
windows_code_signing_secret_access_key:
description: 'Secret access key for the Windows code signing service'
required: false
apple_codesign_identity:
description: 'Apple code signing identity'

View File

@ -29,16 +29,18 @@ function getMSVCConfiguration() {
cmakeOptions = [...cmakeOptions, '-A', 'Win32',];
} else if (hostArch == 'x64') {
cmakeOptions = [...cmakeOptions, '-A', 'x64',];
} else if (hostArch == 'arm64') {
cmakeOptions = [...cmakeOptions, '-A', 'ARM64'];
} else {
throw new Error('Invalid host architecture');
}
const windowsCertificate = core.getInput('windows_certificate');
const windowsCertificatePassword = core.getInput('windows_certificate_password');
const windowsCodeSigningAccessKeyId = core.getInput('windows_code_signing_access_key_id');
const windowsCodeSigningSecretAccessKey = core.getInput('windows_code_signing_secret_access_key');
if (windowsCertificate !== '' && windowsCertificatePassword !== '') {
core.exportVariable('WINDOWS_CERTIFICATE', windowsCertificate);
core.exportVariable('WINDOWS_CERTIFICATE_PASSWORD', windowsCertificatePassword);
if (windowsCodeSigningAccessKeyId !== '' && windowsCodeSigningSecretAccessKey !== '' ) {
core.exportVariable('WINDOWS_CODE_SIGNING_ACCESS_KEY_ID', windowsCodeSigningAccessKeyId);
core.exportVariable('WINDOWS_CODE_SIGNING_SECRET_ACCESS_KEY', windowsCodeSigningSecretAccessKey);
cmakeOptions = [...cmakeOptions, '-Daudacity_perform_codesign=yes'];
}
@ -146,15 +148,6 @@ async function run() {
try{
await configureAudacity();
await debug.processDependenciesDebugInformation(buildDir, buildType, true);
try {
// If upload fails - do nt fail the build
await conan.uploadBinaries();
} catch(error) {
helpers.error(error.message);
}
await conan.cleanupConanBuilds();
} catch(error) {
helpers.error(error.message);

View File

@ -8,89 +8,25 @@ inputs:
runs:
using: "composite"
steps:
- name: Switch to GCC 11 on linux
shell: bash
if: ${{ inputs.force_gcc11 == 'true' && runner.os== 'Linux' }}
run: |
sudo apt install gcc-11 g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo update-alternatives --set gcc /usr/bin/gcc-11
- name: Install required libraries
- name: Prepare the build environment
shell: bash
if: ${{ runner.os== 'Linux' }}
run: |
apt_packages=(
# For self hosted runners
build-essential
cmake
# For Audacity
libasound2-dev
libgtk2.0-dev
libjack-jackd2-dev
gettext
python3-pip
libgl1-mesa-dev
uuid-dev
# For Qt building
libx11-dev
libx11-xcb-dev
libfontenc-dev
libice-dev
libsm-dev
libxau-dev
libxaw7-dev
libxcomposite-dev
libxcursor-dev
libxdamage-dev
libxdmcp-dev
libxext-dev
libxfixes-dev
libxi-dev
libxinerama-dev
libxkbfile-dev
libxmu-dev
libxmuu-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libxres-dev
libxss-dev
libxt-dev
libxtst-dev
libxv-dev
libxvmc-dev
libxxf86vm-dev
libxcb-render0-dev
libxcb-render-util0-dev
libxcb-xkb-dev
libxcb-icccm4-dev
libxcb-image0-dev
libxcb-keysyms1-dev
libxcb-randr0-dev
libxcb-shape0-dev
libxcb-sync-dev
libxcb-xfixes0-dev
libxcb-xinerama0-dev
libxcb-dri3-dev
libxcb-util0-dev
# xkeyboard-config
xkb-data
# It appears that CCI M4 package does not work correctly
m4
)
sudo apt-get update
sudo apt-get install -y --no-install-recommends "${apt_packages[@]}"
sudo apt-get remove -y ccache
echo "Preparing the build environment"
${GITHUB_ACTION_PATH}/setup_linux.sh "${{ inputs.force_gcc11 }}"
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.24.x'
- name: Generate requirements
shell: bash
run: |
echo "markupsafe==2.0.1" > requirements.txt
echo "conan==1.59.0" >> requirements.txt
echo "conan==2.4.0" > requirements.txt
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
if: ${{ runner.os != 'Linux' }}
with:
python-version: 3.10.8
python-version: '3.11'
cache: 'pip'
- uses: BSFishy/pip-action@v1
with:

128
dependencies/setup_linux.sh vendored Executable file
View File

@ -0,0 +1,128 @@
#!/bin/bash
# This script is used to set up a Linux environment for building and packaging software.
# It installs necessary packages and dependencies, and configures the environment.
# It is designed to be run in a Docker container or on a runner.
# Usage: ./setup_linux.sh [true|false]
# true: Force GCC 11
# false: Use the default GCC version
# Default is false
FORCE_GCC11="$1"
set -e
set -o pipefail
apt_packages=(
# For self hosted runners
wget
curl
build-essential
file
git
# For Audacity
libatk-bridge2.0-dev
libcairo2-dev
libcairo-gobject2
libpango-1.0-0
librsvg2-dev
libjack-jackd2-dev
libportaudio2
libasound2-dev
libgtk2.0-dev
gettext
libgl1-mesa-dev
uuid-dev
# For Qt building
libx11-dev
libx11-xcb-dev
libfontenc-dev
libice-dev
libsm-dev
libxau-dev
libxaw7-dev
libxcomposite-dev
libxcursor-dev
libxdamage-dev
libxdmcp-dev
libxext-dev
libxfixes-dev
libxi-dev
libxinerama-dev
libxkbfile-dev
libxmu-dev
libxmuu-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libxres-dev
libxss-dev
libxt-dev
libxtst-dev
libxv-dev
libxvmc-dev
libxxf86vm-dev
libxcb-render0-dev
libxcb-render-util0-dev
libxcb-xkb-dev
libxcb-icccm4-dev
libxcb-image0-dev
libxcb-keysyms1-dev
libxcb-randr0-dev
libxcb-shape0-dev
libxcb-sync-dev
libxcb-xfixes0-dev
libxcb-xinerama0-dev
libxcb-dri3-dev
libxcb-util0-dev
libxcb-cursor-dev
# xkeyboard-config
xkb-data
# It appears that CCI M4 package does not work correctly
m4
# To bundle Adwaita theme
gnome-themes-extra
)
if [ "$(id -u)" -eq 0 ]; then
echo "Running in docker container as root"
apt update
apt install --no-install-recommends -y sudo lsb-release
# Disable interactive prompts
export DEBIAN_FRONTEND=noninteractive
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
echo "Etc/UTC" > /etc/timezone
fi
sudo apt update
sudo apt install -y --no-install-recommends "${apt_packages[@]}"
sudo apt remove -y ccache
# Force GCC11 if requested
if [[ "$FORCE_GCC11" == "true" ]]; then
echo "Switch to GCC 11 on linux"
sudo apt install --no-install-recommends -y gcc-11 g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo update-alternatives --set gcc /usr/bin/gcc-11
fi
# Need to bump python3 to 3.10 for Ubuntu 20.04
source /etc/os-release
if [[ "$ID" == "ubuntu" && "$VERSION_ID" == "20.04" ]]; then
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends ca-certificates curl gnupg
sudo update-ca-certificates
curl -sSL https://github.com/astral-sh/python-build-standalone/releases/download/20251014/cpython-3.10.19+20251014-x86_64-unknown-linux-gnu-install_only.tar.gz \
| sudo tar -xz -C /usr/local
sudo ln -sf /usr/local/python/bin/python3.10 /usr/bin/python3
sudo ln -sf /usr/local/python/bin/python3.10 /usr/bin/python
export PATH="/usr/local/python/bin:$PATH"
echo "/usr/local/python/bin" >> "$GITHUB_PATH"
python3 -m ensurepip
python3 -m pip install --upgrade pip
else
sudo apt install -y --no-install-recommends python3 python3-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
fi
# allows to run git commands
git config --global --add safe.directory '*'

6
dist/build/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -83,6 +83,28 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@vercel/ncc
MIT
Copyright 2018 ZEIT, Inc.
@ -375,11 +397,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
uuid
undici
MIT
The MIT License (MIT)
MIT License
Copyright (c) 2010-2016 Robert Kieffer and other contributors
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

File diff suppressed because one or more lines are too long

View File

@ -120,36 +120,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/core-asynciterator-polyfill
MIT
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
@azure/core-auth
MIT
The MIT License (MIT)
Copyright (c) Microsoft Corporation.
Copyright (c) 2020 Microsoft
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -161,7 +136,7 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@ -170,11 +145,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/core-http
@azure/core-client
MIT
The MIT License (MIT)
Copyright (c) Microsoft Corporation.
Copyright (c) 2020 Microsoft
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -186,7 +161,32 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/core-http-compat
MIT
Copyright (c) Microsoft Corporation.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@ -220,11 +220,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/core-paging
@azure/core-rest-pipeline
MIT
The MIT License (MIT)
Copyright (c) Microsoft Corporation.
Copyright (c) 2020 Microsoft
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -236,7 +236,7 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@ -247,9 +247,9 @@ SOFTWARE.
@azure/core-tracing
MIT
The MIT License (MIT)
Copyright (c) Microsoft Corporation.
Copyright (c) 2020 Microsoft
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -261,7 +261,57 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/core-util
MIT
Copyright (c) Microsoft Corporation.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/core-xml
MIT
Copyright (c) Microsoft Corporation.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@ -272,9 +322,9 @@ SOFTWARE.
@azure/logger
MIT
The MIT License (MIT)
Copyright (c) Microsoft Corporation.
Copyright (c) 2020 Microsoft
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -286,7 +336,7 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@ -297,9 +347,34 @@ SOFTWARE.
@azure/storage-blob
MIT
Copyright (c) Microsoft Corporation.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@azure/storage-common
MIT
The MIT License (MIT)
Copyright (c) 2020 Microsoft
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -319,10 +394,31 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
@opentelemetry/api
Apache-2.0
Apache License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@protobuf-ts/runtime
(Apache-2.0 AND BSD-3-Clause)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@ -497,32 +593,208 @@ Apache-2.0
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
@protobuf-ts/runtime-rpc
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Copyright [yyyy] [name of copyright owner]
1. Definitions.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
http://www.apache.org/licenses/LICENSE-2.0
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
@typespec/ts-http-runtime
MIT
Copyright (c) Microsoft Corporation.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@vercel/ncc
@ -535,30 +807,30 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
asynckit
agent-base
MIT
The MIT License (MIT)
(The MIT License)
Copyright (c) 2016 Alex Indigo
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
balanced-match
MIT
@ -641,29 +913,6 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
combined-stream
MIT
Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
concat-map
MIT
This software is released under the MIT license:
@ -717,9 +966,35 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
delayed-stream
debug
MIT
Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
(The MIT License)
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
Copyright (c) 2018-2021 Josh Junon
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the 'Software'), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
fast-xml-parser
MIT
MIT License
Copyright (c) 2017 Amit Kumar Gupta
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -728,40 +1003,81 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
form-data
has-flag
MIT
Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
http-proxy-agent
MIT
(The MIT License)
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
https-proxy-agent
MIT
(The MIT License)
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-buffer
MIT
@ -819,59 +1135,6 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mime-db
MIT
The MIT License (MIT)
Copyright (c) 2014 Jonathan Ong me@jongleberry.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
mime-types
MIT
(The MIT License)
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
minimatch
ISC
The ISC License
@ -891,6 +1154,31 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ms
MIT
The MIT License (MIT)
Copyright (c) 2020 Vercel, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
@ -917,64 +1205,6 @@ SOFTWARE.
psl
MIT
The MIT License (MIT)
Copyright (c) 2017 Lupo Montero lupomontero@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
sax
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
====
`String.fromCodePoint` by Mathias Bynens used according to terms of MIT
License, as follows:
Copyright Mathias Bynens <https://mathiasbynens.be/>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
semver
ISC
The ISC License
@ -994,20 +1224,17 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tough-cookie
BSD-3-Clause
Copyright (c) 2015, Salesforce.com, Inc.
All rights reserved.
supports-color
MIT
MIT License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
3. Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tr46
@ -1053,35 +1280,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
universalify
undici
MIT
(The MIT License)
MIT License
Copyright (c) 2017, Ryan Zimmerman <opensrc@ryanzim.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the 'Software'), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2016 Robert Kieffer and other contributors
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -1141,51 +1344,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
xml2js
MIT
Copyright 2010, 2011, 2012, 2013. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
xmlbuilder
MIT
The MIT License (MIT)
Copyright (c) 2013 Ozgur Ozcitak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Binary file not shown.

84
dist/package/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,3 @@
const plist = require('simple-plist');
const fetch = require('node-fetch');
const helpers = require('../lib/helpers.js');
const fileUtils = require('./fileUtils.js');
@ -104,56 +101,44 @@ async function signDMG(dmgPath, appIdentifier, codesignIdentifier) {
]);
}
async function notarizeDMG(dmgPath, appIdentifier, notarizationUser, notarizationPassword) {
if (!notarizationUser || !notarizationUser) {
helpers.log("Skipping notarization, as there are np credentials provided");
async function notarizeDMG(dmgPath, notarizationUser, notarizationPassword, notarizationTeamId) {
if (!notarizationUser || !notarizationUser || !notarizationTeamId) {
helpers.log("Skipping notarization, as there are no credentials provided");
return ;
}
helpers.log(`Notarizing DMG: ${dmgPath}`)
const notarizationResult = await helpers.getExecOutput('xcrun', [
'altool', '--notarize-app',
'--primary-bundle-id', appIdentifier,
'--file', dmgPath,
'--username', notarizationUser,
'notarytool', 'submit',
'--apple-id', notarizationUser,
'--team-id', notarizationTeamId,
'--password', notarizationPassword,
'--output-format', 'xml'
'--output-format', 'json',
'--wait', dmgPath
]);
const requestId = plist.parse(notarizationResult.stdout)['notarization-upload']['RequestUUID'];
const parsedResult = JSON.parse(notarizationResult.stdout);
for(;;) {
await helpers.sleep(30000);
const notarizationLog = await helpers.getExecOutput('xcrun', [
'notarytool', 'log',
'--apple-id', notarizationUser,
'--team-id', notarizationTeamId,
'--password', notarizationPassword,
parsedResult["id"]
]);
const notarizationInfo = await helpers.getExecOutput('xcrun', [
'altool',
'--notarization-info', requestId,
'--username', notarizationUser,
'--password', notarizationPassword,
'--output-format', 'xml'
]);
helpers.log(notarizationLog.stdout);
const parsedInfo = plist.parse(notarizationInfo.stdout);
const status = parsedInfo['notarization-info']['Status'];
if(status == 'success') {
return
} else if (status != 'in progress') {
const logUrl = parsedInfo['notarization-info']['LogFileURL'];
if (logUrl) {
const logResponse = await fetch(logUrl);
if (logResponse.ok) {
const log = await logResponse.text();
throw Error(`Notarization failed:\n${log}`);
}
}
throw Error(notarizationInfo.stdout);
}
if (parsedResult["status"] != "Accepted") {
throw Error(`Notarization failed: ${parsedResult["status"]}`);
//helpers.log(`Notarization failed: ${parsedResult["status"]}`);
//return;
}
await helpers.execWithLog('xcrun', ["stapler", "staple", dmgPath]);
helpers.log(`Notarizing was successful: ${dmgPath}`)
}
module.exports = {

View File

@ -55,29 +55,9 @@ async function restoreConanCache(key) {
}
}
async function uploadBinaries() {
const globber = await glob.create(`${workspaceDir}/.conan/data/**/build`);
const files = await globber.glob();
if (files.length == 0) {
helpers.log('No new binaries were built. Skipping upload.');
return;
}
const remote = process.env['CONAN_BINARIES_REMOTE'];
if (remote) {
try {
await helpers.execWithLog(`conan remote add audacity-binaries-upload ${remote} true --force`);
} finally {
await helpers.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`);
await helpers.execWithLog(`conan remote remove audacity-binaries-upload`);
}
}
}
async function cleanupConanBuilds() {
helpers.log("Cleaning up conan build cache");
await helpers.execWithLog('conan remove "*" --src --builds --force')
await helpers.execWithLog('conan cache clean "*"')
}
async function storeConanCache(key) {
@ -89,8 +69,7 @@ async function storeConanCache(key) {
}
async function setupConan() {
core.exportVariable('CONAN_USER_HOME', workspaceDir);
core.exportVariable('CONAN_REVISIONS_ENABLED', '1');
core.exportVariable('CONAN_HOME', `${workspaceDir}/.conan`);
}
module.exports = {
@ -99,5 +78,4 @@ module.exports = {
restoreConanCache: restoreConanCache,
cleanupConanBuilds: cleanupConanBuilds,
storeConanCache: storeConanCache,
uploadBinaries: uploadBinaries,
}

View File

@ -246,29 +246,8 @@ async function getMatchingFiles(mainPatterns, controlPatterns, skipExt) {
});
}
async function splitDepsDebugSymbols(extension, splitter, performUpload) {
const files = await getMatchingFiles(
path.join(conanCachePath, 'data/**/package/**/*' + extension),
path.join(conanCachePath, 'data/**/build/**/*' + extension)
);
let debugFiles = []
for(const file of files) {
const debugPath = await splitter(file);
if (debugPath.length > 0) {
debugFiles.push(debugPath);
}
}
if (performUpload && debugFiles.length > 0) {
await uploadAllToSentry([...debugFiles, ...files])
}
}
async function splitAudacityDebugSymbols(buildDir, buildType, extension, splitter, performUpload) {
const binDir = path.join(buildDir, 'bin', buildType);
const binDir = path.join(buildDir, buildType);
// Find all executable files, that
// do not have an extesion
@ -279,7 +258,7 @@ async function splitAudacityDebugSymbols(buildDir, buildType, extension, splitte
const systemLibraries = await getMatchingFiles(
`${binDir}/**/*${extension}`,
`${conanCachePath}/**/package/**/*${extension}`);
`${conanCachePath}/**/p/**/*${extension}`);
const libraries = (await fileUtils.globFiles(`${binDir}/**/*${extension}`)).filter(file => {
const stat = fs.lstatSync(file);
@ -307,46 +286,6 @@ async function splitAudacityDebugSymbols(buildDir, buildType, extension, splitte
}
}
async function processDependenciesDebugInformation(buildDir, buildType, performUpload) {
if (process.platform == 'win32') {
// On Windows, nothing needs to be done
// if we are processeing dependencies and
// no upload is needed
if (!performUpload || !artifactorySymbolsURL) {
return;
}
if(!symstoreFound) {
helpers.error("symstore.exe is not available");
return;
}
// Collect PDBs
const pdbs = await fileUtils.globFiles([
path.join(conanCachePath, 'data/**/build/**/*.pdb'),
'C:/.conan/**/*.pdb'
]);
for(const pdb of pdbs) {
await addToSymStore(pdb);
}
if(pdbs.length > 0) {
await uploadSymStore();
const dlls = await fileUtils.globFiles([
path.join(conanCachePath, 'data/**/build/**/*.dll'),
'C:/.conan/**/*.dll'
]);
await uploadAllToSentry([...pdbs, ...dlls])
}
} else if (process.platform == 'darwin') {
await splitDepsDebugSymbols('.dylib', splitDsymFile, performUpload);
} else {
await splitDepsDebugSymbols('.so*', splitDebugFile, performUpload);
}
}
async function processDebugInformation(buildDir, buildType, performUpload) {
if (process.platform == 'win32') {
const pdbs = await fileUtils.globFiles(path.join(buildDir, `${buildType}/**/*.pdb`));
@ -388,6 +327,5 @@ async function processDebugInformation(buildDir, buildType, performUpload) {
}
module.exports = {
processDependenciesDebugInformation: processDependenciesDebugInformation,
processDebugInformation: processDebugInformation,
}

View File

@ -20,6 +20,30 @@ async function estimateBundleSize(files) {
return size * 1.5
}
async function disableSpotlight() {
try {
await helpers.execWithLog('sudo', [
'mdutil', '-a', '-i', 'off'
]);
helpers.log('Spotlight indexing disabled');
finalizers.push(async () => {
try{
await helpers.execWithLog('sudo', [
'mdutil', '-a', '-i', 'on'
]);
helpers.log('Spotlight indexing enabled');
} catch (err) {
helpers.error(err.message);
}
});
} catch (err) {
helpers.error(err.message);
}
}
async function createTempImage(appPath, volName, size, finalizers) {
const tempImagePath = temp.template('%s.dmg').writeFileSync('');
helpers.log(tempImagePath);
@ -31,17 +55,28 @@ async function createTempImage(appPath, volName, size, finalizers) {
}
});
await helpers.execWithLog('hdiutil', [
'create', tempImagePath,
'-ov',
'-format', 'UDRW',
'-fs', 'HFS+',
'-size', size,
'-srcdir', path.dirname(appPath),
'-volname', volName
]);
const maxAttempts = 10;
return tempImagePath;
for (let attempt = 1; attempt < maxAttempts; ++attempt) {
try {
await helpers.execWithLog('hdiutil', [
'create', tempImagePath,
'-ov',
'-format', 'UDRW',
'-fs', 'HFS+',
'-size', size,
'-srcdir', path.dirname(appPath),
'-volname', volName
]);
return tempImagePath;
} catch (err) {
helpers.error(err.message);
await helpers.sleep(2000 * attempt);
}
}
throw new Error(`Failed to create image ${tempImagePath}`);
}
async function detachImage(mountedPath) {
@ -49,6 +84,11 @@ async function detachImage(mountedPath) {
for (let attempt = 1; attempt < maxAttempts; ++attempt) {
try {
if (!fs.existsSync(mountedPath)) {
helpers.log(`Image ${mountedPath} already detached`);
return;
}
return await helpers.execWithLog('hdiutil', [
'detach', mountedPath
]);
@ -58,30 +98,51 @@ async function detachImage(mountedPath) {
}
}
return await helpers.execWithLog('hdiutil', [
'detach', mountedPath, '-force'
]);
try {
if (!fs.existsSync(mountedPath)) {
helpers.log(`Image ${mountedPath} already detached`);
return;
}
return await helpers.execWithLog('hdiutil', [
'detach', mountedPath, '-force'
]);
} catch (err) {
helpers.error(err.message);
throw new Error(`Failed to detach image ${mountedPath}`);
}
}
async function attachImage(imagePath, finalizers) {
const output = await helpers.getExecOutput('hdiutil', [
'attach', imagePath,
'-nobrowse',
'-noverify',
'-noautoopen'
]);
const maxAttempts = 10;
const match = /Apple_HFS\s+(.*)\s*$/.exec(output.stdout);
const mountedPath = match[1];
for (let attempt = 1; attempt < maxAttempts; ++attempt) {
try {
const output = await helpers.getExecOutput('hdiutil', [
'attach', imagePath,
'-nobrowse',
'-noverify',
'-noautoopen'
]);
finalizers.push(async () => {
if (fs.existsSync(mountedPath)) {
helpers.log(`Detaching image ${imagePath} mounted at ${mountedPath}`);
await detachImage(mountedPath);
const match = /Apple_HFS\s+(.*)\s*$/.exec(output.stdout);
const mountedPath = match[1];
finalizers.push(async () => {
if (fs.existsSync(mountedPath)) {
helpers.log(`Detaching image ${imagePath} mounted at ${mountedPath}`);
await detachImage(mountedPath);
}
});
return mountedPath;
} catch (err) {
helpers.error(err.message);
await helpers.sleep(2000 * attempt);
}
});
}
return mountedPath;
throw new Error(`Failed to attach image ${imagePath}`);
}
async function copyFiles(targetDir, appDir, files) {
@ -136,17 +197,42 @@ async function createDSStore(mountPath, name) {
}
async function convertDMG(tempDmgPath, dmgPath) {
if (fs.existsSync(dmgPath)){
fs.rmSync(dmgPath);
const maxAttempts = 10;
for (let attempt = 1; attempt < maxAttempts; ++attempt) {
try {
if (fs.existsSync(dmgPath)) {
fs.rmSync(dmgPath);
}
const newTempPath = tempDmgPath + '.new.dmg';
if (fs.existsSync(newTempPath)) {
fs.rmSync(newTempPath);
}
await fs.promises.copyFile(tempDmgPath, newTempPath);
await helpers.execWithLog('hdiutil', [
'convert', newTempPath,
'-format', 'UDZO',
'-imagekey',
'zlib-level=9',
'-o', dmgPath
]);
fs.rmSync(newTempPath);
return;
} catch (err) {
helpers.error(err.message);
await helpers.sleep(2000 * attempt);
}
}
await helpers.execWithLog('hdiutil', [
'convert', tempDmgPath,
'-format', 'UDZO',
'-imagekey',
'zlib-level=9',
'-o', dmgPath
]);
if (!fs.existsSync(dmgPath)) {
throw new Error(`Failed to convert image ${tempDmgPath} to ${dmgPath}`);
}
}
async function packageDMG(dmgPath, appPath) {
@ -156,7 +242,7 @@ async function packageDMG(dmgPath, appPath) {
try {
const files = await fileUtils.listDirectory(appPath);
const size = await estimateBundleSize([...files, backgroundImage]);
await disableSpotlight();
const tempImagePath = await createTempImage(appPath, volname, size, finalizers);
const mountedPath = await attachImage(tempImagePath, finalizers);
await copyFiles(mountedPath, appPath, files);

View File

@ -26,11 +26,11 @@ function error(msg) {
}
}
async function execWithLog(programm, arguments) {
async function execWithLog(programm, args) {
if (runningOnCI) {
return exec.exec(programm, arguments);
return exec.exec(programm, args);
} else {
return exec.exec(programm, arguments, {
return exec.exec(programm, args, {
listeners: {
/*debug: data => {
log(data);
@ -46,11 +46,11 @@ async function execWithLog(programm, arguments) {
}
}
async function getExecOutput(programm, arguments) {
async function getExecOutput(programm, args) {
if (runningOnCI) {
return exec.getExecOutput(programm, arguments);
return exec.getExecOutput(programm, args);
} else {
return exec.getExecOutput(programm, arguments, {
return exec.getExecOutput(programm, args, {
listeners: {
stdout: data => {
log(data.toString());

View File

@ -61,6 +61,6 @@ async function archSuffix(appPath) {
module.exports = {
create: create,
archs, archs,
archs: archs,
archSuffix: archSuffix
}

View File

@ -31,9 +31,9 @@ async function downloadConan(version) {
}
async function prepareEnvironment() {
conan = await downloadConan('1.58.0');
conan = await downloadConan('2.0.7');
core.exportVariable('CONAN_USER_HOME', conanCacheLocation);
core.exportVariable('CONAN_HOME', conanCacheLocation);
core.addPath(bin_path);
await helpers.execWithLog(conan, [

9690
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,31 +12,32 @@
},
"license": "BSD 3-Clause",
"dependencies": {
"@actions/artifact": "^0.5.2",
"@actions/cache": "^1.0.8",
"@actions/core": "^1.4.0",
"@actions/exec": "^1.1.0",
"@actions/github": "^4.0.0",
"@actions/glob": "^0.2.0",
"@actions/http-client": "^1.0.11",
"@actions/tool-cache": "^1.7.1",
"@actions/artifact": "^2.1.8",
"@actions/cache": "^4.0.3",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.0",
"@actions/glob": "^0.4.0",
"@actions/http-client": "^2.2.1",
"@actions/tool-cache": "^2.0.1",
"ds-store": "^0.1.6",
"extract-zip": "^2.0.1",
"fs-temp": "^1.2.1",
"fs-temp": "^2.0.1",
"md5": "2.3.0",
"simple-plist": "1.1.0",
"yaml": "1.10.2"
"simple-plist": "^1.1.0",
"yaml": "2.4.5"
},
"devDependencies": {
"@vercel/ncc": "^0.31.1",
"eslint": "^8.0.0",
"jest": "^27.2.5",
"@vercel/ncc": "^0.38.1",
"eslint": "^9.6.0",
"jest": "^29.7.0",
"platform-dependent-modules": "^0.0.14"
},
"config": {
"platformDependentModules": {
"darwin": [
"ds-store@0.1.6"
"ds-store@0.1.6",
"simple-plist@1.1.0"
]
}
}

View File

@ -30,6 +30,7 @@ if (universalArchitectures.length == 0) {
const codesignIdentifier = core.getInput('apple_codesign_identity');
const userName = core.getInput('apple_notarization_user_name');
const password = core.getInput('apple_notarization_password');
const teamId = core.getInput('apple_notarization_team_id');
async function packageAudacity(target) {
const buildArgs = [
@ -107,7 +108,7 @@ async function packageApp(app, suffix, packageDir) {
await appleCodeSigning.signDMG(dmgPath, bundleIdentifier, codesignIdentifier);
if (userName !== '' && password !== '' && buildLevel != BuildLevel.Alpha) {
await appleCodeSigning.notarizeDMG(dmgPath, bundleIdentifier, userName, password);
await appleCodeSigning.notarizeDMG(dmgPath, userName, password, teamId);
}
}
}
@ -166,26 +167,32 @@ async function run() {
const filesList = await fs.promises.readdir(packageDir);
const artifactClient = artifact.create();
const artifactClient = new artifact.DefaultArtifactClient();
const filesByArtifactName = {};
for(const file of filesList) {
const ext = path.extname(file);
const name = path.basename(file, ext);
const artifactName = `${name}${postfix}`;
if (!filesByArtifactName[artifactName]) {
filesByArtifactName[artifactName] = [];
}
if (ext === '.zip') {
await extractZip(path.join(packageDir, file), { dir: packageDir });
const filesList = await fileUtils.listDirectory(path.join(packageDir, name));
helpers.log(filesList);
await artifactClient.uploadArtifact(artifactName, filesList, packageDir);
}
else {
await artifactClient.uploadArtifact(artifactName, [ path.join(packageDir, file) ], packageDir);
filesByArtifactName[artifactName] = filesByArtifactName[artifactName].concat(filesList);
} else {
filesByArtifactName[artifactName].push(path.join(packageDir, file));
}
}
for (const artifactName in filesByArtifactName) {
const fileList = filesByArtifactName[artifactName];
helpers.log(`Starting upload of files ${fileList} as ${artifactName}`);
await artifactClient.uploadArtifact(artifactName, fileList, packageDir);
}
} catch (error) {
helpers.error(error.message);
core.setFailed(error.message);