Skip to content

Commit

Permalink
Add files
Browse files Browse the repository at this point in the history
  • Loading branch information
RyeMutt committed Jun 23, 2024
1 parent 6564198 commit 031c43e
Show file tree
Hide file tree
Showing 32 changed files with 773 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
18 changes: 18 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- dependabot
categories:
- title: Breaking Changes 🛠
labels:
- semver-major
- breaking-change
- title: New Features 🎉
labels:
- semver-minor
- enhancement
- title: Other Changes
labels:
- '*'
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04]
addrsize: ["64"]
runs-on: ${{ matrix.os }}
steps:
- uses: AlchemyViewer/action-autobuild@v4
with:
addrsize: ${{ matrix.addrsize }}
build-variables-repo: alchemyviewer/build-variables
build-variables-ref: alchemy
release:
needs: build
runs-on: [ubuntu-latest]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: alchemyviewer/action-autobuild-release@v4
with:
public: true
122 changes: 122 additions & 0 deletions autobuild.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0" ?>
<llsd>
<map>
<key>package_description</key>
<map>
<key>copyright</key>
<string>2010 Vivox, including audio coding using Polycom¨ Siren14TM (ITU-T Rec. G.722.1 Annex C)</string>
<key>description</key>
<string>Vivox SDK components</string>
<key>license</key>
<string>Mixed</string>
<key>license_file</key>
<string>LICENSES/vivox_licenses.txt</string>
<key>name</key>
<string>slvoice</string>
<key>platforms</key>
<map>
<key>common</key>
<map>
<key>configurations</key>
<map>
<key>default</key>
<map>
<key>build</key>
<map>
<key>arguments</key>
<array>
<string>../build-cmd.sh</string>
</array>
<key>command</key>
<string>bash</string>
</map>
<key>default</key>
<boolean>true</boolean>
<key>name</key>
<string>default</string>
</map>
</map>
<key>manifest</key>
<array>
<string>LICENSES/vivox_licenses.txt</string>
<string>LICENSES/vivox_sdk_license.txt</string>
</array>
<key>name</key>
<string>common</string>
</map>
<key>darwin</key>
<map>
<key>build_directory</key>
<string>stage</string>
<key>configurations</key>
<map>
<key>default</key>
<map>
<key>default</key>
<boolean>true</boolean>
<key>name</key>
<string>default</string>
</map>
</map>
<key>manifest</key>
<array>
<string>bin/release/*</string>
<string>lib/release/*</string>
</array>
<key>name</key>
<string>darwin</string>
</map>
<key>linux</key>
<map>
<key>build_directory</key>
<string>stage</string>
<key>configurations</key>
<map>
<key>default</key>
<map>
<key>default</key>
<boolean>true</boolean>
<key>name</key>
<string>default</string>
</map>
</map>
<key>manifest</key>
<array>
<string>bin/release/*</string>
<string>lib/release/*</string>
</array>
<key>name</key>
<string>linux</string>
</map>
<key>windows</key>
<map>
<key>build_directory</key>
<string>stage</string>
<key>configurations</key>
<map>
<key>default</key>
<map>
<key>default</key>
<boolean>true</boolean>
<key>name</key>
<string>default</string>
</map>
</map>
<key>manifest</key>
<array>
<string>bin/release/*</string>
<string>lib/release/*</string>
</array>
<key>name</key>
<string>windows</string>
</map>
</map>
<key>version_file</key>
<string>VERSION.txt</string>
</map>
<key>type</key>
<string>autobuild</string>
<key>version</key>
<string>1.3</string>
</map>
</llsd>
97 changes: 97 additions & 0 deletions build-cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#!/usr/bin/env bash

cd "$(dirname "$0")"

# turn on verbose debugging output for logs.
exec 4>&1; export BASH_XTRACEFD=4; set -x
# make errors fatal
set -e
# bleat on references to undefined shell variables
set -u

top="$(pwd)"
stage="$top"/stage
stage_bin_debug="$stage/bin/debug"
stage_bin_release="$stage/bin/release"
stage_lib_debug="$stage/lib/debug"
stage_lib_release="$stage/lib/release"

VIVOX_SOURCE_DIR="$top/vivox"
VIVOX_VERSION="4.10.0000.32327.5fc3fe7c.558436"

# load autobuild provided shell functions and variables
case "$AUTOBUILD_PLATFORM" in
windows*)
autobuild="$(cygpath -u "$AUTOBUILD")"
;;
*)
autobuild="$AUTOBUILD"
;;
esac
source_environment_tempfile="$stage/source_environment.sh"
"$autobuild" source_environment > "$source_environment_tempfile"
. "$source_environment_tempfile"

echo "${VIVOX_VERSION}" > "${stage}/VERSION.txt"

# Create the staging license folder
mkdir -p "$stage/LICENSES"

#Create the staging debug and release folders
mkdir -p "$stage_bin_debug"
mkdir -p "$stage_bin_release"
mkdir -p "$stage_lib_debug"
mkdir -p "$stage_lib_release"

COPYFLAGS=""
pushd "$VIVOX_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in
windows*)
if [ "$AUTOBUILD_ADDRSIZE" = 32 ]
then platformdir="win32"
else platformdir="win64"
fi

COPYFLAGS="-dR --preserve=mode,timestamps"
cp $COPYFLAGS ${platformdir}/*.exe "$stage_bin_release"
cp $COPYFLAGS ${platformdir}/*.lib "$stage_lib_release"
cp $COPYFLAGS ${platformdir}/*.dll "$stage_lib_release"
cp $COPYFLAGS ${platformdir}/*.pdb "$stage_lib_release"
;;
darwin*)
COPYFLAGS="-a"
cp $COPYFLAGS darwin64/SLVoice "$stage_bin_release"
cp $COPYFLAGS darwin64/*.dylib "$stage_lib_release"
if [ -n "${APPLE_SIGNATURE:=""}" -a -n "${APPLE_KEY:=""}" -a -n "${APPLE_KEYCHAIN:=""}" ]; then
KEYCHAIN_PATH="$HOME/Library/Keychains/$APPLE_KEYCHAIN"
security unlock-keychain -p $APPLE_KEY $KEYCHAIN_PATH
pushd "$stage_lib_release"
codesign --keychain "$KEYCHAIN_PATH" --force --timestamp --sign "$APPLE_SIGNATURE" libortp.dylib || true
codesign --keychain "$KEYCHAIN_PATH" --force --timestamp --sign "$APPLE_SIGNATURE" libvivoxsdk.dylib || true
popd
pushd "$stage_bin_release"
codesign --keychain "$KEYCHAIN_PATH" --sign "$APPLE_SIGNATURE" \
--entitlements "$VIVOX_SOURCE_DIR/darwin64/slvoice.entitlements.plist" \
-o "runtime,library" --force --timestamp SLVoice || true
popd
security lock-keychain $KEYCHAIN_PATH
else
echo "Code signing not configured; skipping codesign."
fi
;;
linux*)
COPYFLAGS="-a"
cp $COPYFLAGS linux/SLVoice "$stage_bin_release"
cp $COPYFLAGS linux/*.so* "$stage_lib_release"

mkdir -p "$stage_bin_release/win32"
mkdir -p "$stage_bin_release/win64"
cp $COPYFLAGS win32/*.* "$stage_bin_release/win32"
cp $COPYFLAGS win64/*.* "$stage_bin_release/win64"
;;
esac

# Copy License
cp "vivox_licenses.txt" "$stage/LICENSES/vivox_licenses.txt"
cp "vivox_sdk_license.txt" "$stage/LICENSES/vivox_sdk_license.txt"
popd
3 changes: 3 additions & 0 deletions vivox/darwin64/SLVoice
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/darwin64/libortp.dylib
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/darwin64/libvivoxsdk.dylib
Git LFS file not shown
8 changes: 8 additions & 0 deletions vivox/darwin64/slvoice.entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
3 changes: 3 additions & 0 deletions vivox/linux/SLVoice
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/linux/libortp.so
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/linux/libsndfile.so.1
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/linux/libvivoxoal.so.1
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/linux/libvivoxplatform.so
Git LFS file not shown
3 changes: 3 additions & 0 deletions vivox/linux/libvivoxsdk.so
Git LFS file not shown
Loading

0 comments on commit 031c43e

Please sign in to comment.