-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
887fcb7
commit 3f6e15b
Showing
37 changed files
with
819 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages/**/data/** | ||
!packages/**/data/.keepme | ||
!config/*.xml | ||
!packages/**/meta/*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Installer> | ||
<Name>RPAN Studio</Name> | ||
<Version>25.0.7.6</Version> | ||
<Title>RPAN Studio Installer</Title> | ||
<Publisher>Reddit, Inc.</Publisher> | ||
<ProductUrl>https://www.reddit.com/r/RPANStudio</ProductUrl> | ||
<StartMenuDir>RPAN Studio</StartMenuDir> | ||
<TargetDir>@ApplicationsDirX64@/RPAN Studio</TargetDir> | ||
<MaintenanceToolName>uninstall</MaintenanceToolName> | ||
<MaintenanceToolIniFile>uninstall</MaintenanceToolIniFile> | ||
<RepositorySettingsPageVisible>false</RepositorySettingsPageVisible> | ||
<SupportsModify>false</SupportsModify> | ||
<!-- Doesn't support setting the working directory... --> | ||
<!-- <RunProgram>@TargetDir@/bin/64bit/obs64.exe</RunProgram> --> | ||
<!-- <RunProgramDescription>Launch RPAN Studio</RunProgramDescription> --> | ||
<InstallerApplicationIcon>rpan-studio</InstallerApplicationIcon> | ||
<InstallerWindowIcon>rpan-studio.png</InstallerWindowIcon> | ||
<Logo>rpan-studio.png</Logo> | ||
<WizardStyle>Modern</WizardStyle> | ||
</Installer> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
40 changes: 40 additions & 0 deletions
40
CI/install/windows/packages/com.reddit.rpanstudio/meta/installscript.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
function Component() { | ||
if (systemInfo.productType === "windows") { | ||
installer.installationFinished.connect( | ||
this, | ||
Component.prototype.installVCRedist | ||
); | ||
} | ||
} | ||
|
||
Component.prototype.installVCRedist = function() { | ||
var dir = installer.value("TargetDir"); | ||
installer.execute(dir + "/redist/vcredist_x86.exe", "/install", "/norestart", "/passive"); | ||
installer.execute(dir + "/redist/vcredist_x64.exe", "/install", "/norestart", "/passive"); | ||
} | ||
|
||
Component.prototype.createOperations = function() { | ||
component.createOperations(); | ||
|
||
if (systemInfo.productType === "windows") { | ||
component.addOperation( | ||
"CreateShortcut", | ||
"@TargetDir@/bin/64bit/obs64.exe", | ||
"@StartMenuDir@/RPAN Studio.lnk", | ||
"workingDirectory=@TargetDir@/bin/64bit", | ||
"iconPath=@TargetDir@/bin/64bit/obs64.exe", | ||
"iconId=0", | ||
"description=RPAN Studio" | ||
); | ||
|
||
component.addOperation( | ||
"CreateShortcut", | ||
"@TargetDir@/uninstall.exe", | ||
"@StartMenuDir@/Uninstall.lnk", | ||
"workingDirectory=@TargetDir@", | ||
"iconPath=@TargetDir@/uninstall.exe", | ||
"iconId=0", | ||
"description=Uninstall RPAN Studio" | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
CI/install/windows/packages/com.reddit.rpanstudio/meta/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Package> | ||
<Name>com.reddit.rpanstudio</Name> | ||
<DisplayName>RPAN Studio</DisplayName> | ||
<Description>RPAN Studio Application</Description> | ||
<Version>25.0.7.6</Version> | ||
<ReleaseDate>2020-07-01</ReleaseDate> | ||
<ForcedInstallation>true</ForcedInstallation> | ||
<Script>installscript.qs</Script> | ||
</Package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
AppDir/* | ||
!AppDir/.keep | ||
build/* | ||
!build/.keep | ||
tmp/* | ||
!tmp/.keep |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM mardy/qt:xenial-qt512 | ||
|
||
RUN apt update && \ | ||
apt install -y libavcodec-dev \ | ||
libavdevice-dev \ | ||
libavformat-dev \ | ||
libcurl4-openssl-dev \ | ||
zlib1g-dev \ | ||
libx264-dev \ | ||
libjack-dev \ | ||
libpulse-dev \ | ||
libasound-dev \ | ||
libmbedtls-dev \ | ||
libfdk-aac-dev \ | ||
libvlc-dev \ | ||
libv4l-dev \ | ||
libudev-dev \ | ||
libspeexdsp-dev \ | ||
libfreetype6-dev \ | ||
libfontconfig1-dev \ | ||
swig \ | ||
libpython3-dev \ | ||
libluajit-5.1-dev \ | ||
wget \ | ||
freeglut3 \ | ||
libegl1-mesa \ | ||
libcups2 | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3' | ||
services: | ||
builder: | ||
build: . | ||
volumes: | ||
- '../..:/project/src' | ||
- './scripts:/project/scripts' | ||
- './build:/project/build' | ||
- './AppDir:/project/AppDir' | ||
- './tmp:/project/tmp' | ||
environment: | ||
- REDDIT_HASH=${REDDIT_HASH} | ||
- REDDIT_CLIENTID=${REDDIT_CLIENTID} | ||
- REDDIT_SECRET=${REDDIT_SECRET} | ||
- REDDIT_HMAC_GLOBAL_VERSION=${REDDIT_HMAC_GLOBAL_VERSION} | ||
- REDDIT_HMAC_PLATFORM=${REDDIT_HMAC_PLATFORM} | ||
- REDDIT_HMAC_TOKEN_VERSION=${REDDIT_HMAC_TOKEN_VERSION} | ||
- BUILD_THREADS=${BUILD_THREADS} | ||
- CLEAN_BUILD=${CLEAN_BUILD} | ||
command: /project/scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
HERE="$(dirname "$(readlink -f "${0}")")" | ||
cd ${HERE}/usr | ||
PYTHONHOME=${HERE}/usr/lib/python3.5 PYTHONPATH=${HERE}/usr/lib/python3.5 exec "${HERE}/usr/bin/obs" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -f /project/tmp/linuxdeployqt ] ; then | ||
wget https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage -O /project/tmp/linuxdeployqt | ||
chmod +x /project/tmp/linuxdeployqt | ||
fi | ||
if [ ! -f /project/tmp/ldq/squashfs-root/AppRun ] ; then | ||
mkdir -p /project/tmp/ldq | ||
cd /project/tmp/ldq | ||
../linuxdeployqt --appimage-extract | ||
fi | ||
|
||
if [ ! -f /project/tmp/appimagetool ] ; then | ||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /project/tmp/appimagetool | ||
chmod +x /project/tmp/appimagetool | ||
fi | ||
if [ ! -f /project/tmp/ait/squashfs-root/AppRun ] ; then | ||
mkdir -p /project/tmp/ait | ||
cd /project/tmp/ait | ||
../appimagetool --appimage-extract | ||
fi | ||
|
||
cd /project/build | ||
if [ "${CLEAN_BUILD}" == "1" ] ; then | ||
echo "CLEAN BUILD" | ||
rm -rf /project/build/* | ||
fi | ||
|
||
cmake ../src \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DREDDIT_HASH="${REDDIT_HASH}" \ | ||
-DREDDIT_CLIENTID="${REDDIT_CLIENTID}" \ | ||
-DREDDIT_SECRET="${REDDIT_SECRET}" \ | ||
-DREDDIT_HMAC_GLOBAL_VERSION="${REDDIT_HMAC_GLOBAL_VERSION}" \ | ||
-DREDDIT_HMAC_PLATFORM="${REDDIT_HMAC_PLATFORM}" \ | ||
-DREDDIT_HMAC_TOKEN_VERSION="${REDDIT_HMAC_TOKEN_VERSION}" | ||
|
||
rm -rf /project/AppDir/* | ||
|
||
make -j${BUILD_THREADS:-1} | ||
make DESTDIR=/project/AppDir -j${BUILD_THREADS:-1} install | ||
|
||
apt-get -y download libpython3.5-minimal libpython3.5-stdlib | ||
( cd /project/AppDir ; dpkg -x /project/build/libpython3.5-minimal*deb . ) | ||
( cd /project/AppDir ; dpkg -x /project/build/libpython3.5-stdlib*deb . ) | ||
( cd /project/AppDir/usr ; ln -s lib/obs-scripting/* . ) | ||
( cd /project/AppDir/usr/lib/python3.5 ; ln -s plat-x86_64-linux-gnu/_sysconfigdata_m.py . ) | ||
|
||
sed -i -e 's|../../obs-plugins/64bit|././././lib/obs-plugins|g' /project/AppDir/usr/lib/libobs.so.0 | ||
|
||
rm -rf /project/AppDir/usr/share/metainfo | ||
|
||
cp /project/scripts/{AppRun,rpan-studio.{desktop,png}} /project/AppDir/ | ||
|
||
/project/tmp/ldq/squashfs-root/AppRun \ | ||
/project/AppDir/usr/bin/obs \ | ||
-bundle-non-qt-libs \ | ||
-verbose=1 \ | ||
-executable=/project/AppDir/usr/bin/obs-ffmpeg-mux \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/decklink-ouput-ui.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/frontend-tools.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/image-source.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/linux-alsa.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/linux-decklink.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/linux-jack.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/linux-pulseaudio.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/linux-v4l2.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/obs-ffmpeg.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/obs-filters.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/obs-libfdk.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/obs-outputs.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/obs-transitions.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/obs-x264.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/rtmp-services.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/text-freetype2.so \ | ||
-executable=/project/AppDir/usr/lib/obs-plugins/vlc-video.so \ | ||
-executable=/project/AppDir/usr/lib/libobs-opengl.so.0 | ||
|
||
/project/tmp/ait/squashfs-root/AppRun \ | ||
--comp=xz \ | ||
-v \ | ||
/project/AppDir \ | ||
/project/build/rpan-studio.AppImage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=RPAN Studio | ||
Comment=OBS Studio with RPAN integration | ||
Path=/usr | ||
Exec=obs | ||
Icon=rpan-studio | ||
Categories=AudioVideo;Recorder; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.