Update build-windows.yml
This commit is contained in:
38
.github/workflows/build-windows.yml
vendored
38
.github/workflows/build-windows.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: build-shotcut-windows
|
name: build-mailadler-windows
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -74,13 +74,13 @@ jobs:
|
|||||||
mkdir Qt
|
mkdir Qt
|
||||||
cd Qt
|
cd Qt
|
||||||
echo Downloading Qt
|
echo Downloading Qt
|
||||||
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/shotcut-build/qt-6.10.1-x64-mingw.txz
|
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/mailadler-build/qt-6.10.1-x64-mingw.txz
|
||||||
echo Extracting Qt
|
echo Extracting Qt
|
||||||
tar -xJf qt-6.10.1-x64-mingw.txz
|
tar -xJf qt-6.10.1-x64-mingw.txz
|
||||||
rm qt-6.10.1-x64-mingw.txz
|
rm qt-6.10.1-x64-mingw.txz
|
||||||
cd ..
|
cd ..
|
||||||
echo Downloading a few prebuilt dependencies
|
echo Downloading a few prebuilt dependencies
|
||||||
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/shotcut-build/mlt-prebuilt-mingw64-v6.txz
|
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/mailadler-build/mlt-prebuilt-mingw64-v6.txz
|
||||||
echo Extracting prebuilt dependencies
|
echo Extracting prebuilt dependencies
|
||||||
tar -xJf mlt-prebuilt-mingw64-v6.txz
|
tar -xJf mlt-prebuilt-mingw64-v6.txz
|
||||||
rm mlt-prebuilt-mingw64-v6.txz
|
rm mlt-prebuilt-mingw64-v6.txz
|
||||||
@@ -88,9 +88,9 @@ jobs:
|
|||||||
popd
|
popd
|
||||||
echo Running the build script
|
echo Running the build script
|
||||||
echo INSTALL_DIR=\"$CHECKOUT_DIR/build\"
|
echo INSTALL_DIR=\"$CHECKOUT_DIR/build\"
|
||||||
echo INSTALL_DIR=\"$CHECKOUT_DIR/build\" > build-shotcut.conf
|
echo INSTALL_DIR=\"$CHECKOUT_DIR/build\" > build-mailadler.conf
|
||||||
echo SHOTCUT_VERSION=\"$VERSION\" >> build-shotcut.conf
|
echo mailadler_VERSION=\"$VERSION\" >> build-mailadler.conf
|
||||||
bash scripts/build-shotcut-msys2.sh
|
bash scripts/build-mailadler-msys2.sh
|
||||||
pushd build
|
pushd build
|
||||||
echo Installing awscli
|
echo Installing awscli
|
||||||
pip install awscli
|
pip install awscli
|
||||||
@@ -98,31 +98,31 @@ jobs:
|
|||||||
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY }}
|
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY }}
|
||||||
export AWS_DEFAULT_REGION=us-east-1
|
export AWS_DEFAULT_REGION=us-east-1
|
||||||
echo Downloading code-signing certificates
|
echo Downloading code-signing certificates
|
||||||
aws s3 cp s3://misc.meltymedia/shotcut-build/CodeSignCertificates2023.p12 ./ --no-progress
|
aws s3 cp s3://misc.meltymedia/mailadler-build/CodeSignCertificates2023.p12 ./ --no-progress
|
||||||
aws s3 cp s3://misc.meltymedia/shotcut-build/CodeSignCertificates.pass ./ --no-progress
|
aws s3 cp s3://misc.meltymedia/mailadler-build/CodeSignCertificates.pass ./ --no-progress
|
||||||
for EXE in Shotcut/*.exe; do
|
for EXE in mailadler/*.exe; do
|
||||||
echo Signing ${EXE}
|
echo Signing ${EXE}
|
||||||
osslsigncode sign -pkcs12 CodeSignCertificates2023.p12 -readpass CodeSignCertificates.pass -n "Shotcut" -i "https://www.meltytech.com" -t "http://timestamp.digicert.com" -in ${EXE} -out ${EXE}-signed
|
osslsigncode sign -pkcs12 CodeSignCertificates2023.p12 -readpass CodeSignCertificates.pass -n "mailadler" -i "https://www.meltytech.com" -t "http://timestamp.digicert.com" -in ${EXE} -out ${EXE}-signed
|
||||||
mv ${EXE}-signed ${EXE}
|
mv ${EXE}-signed ${EXE}
|
||||||
done
|
done
|
||||||
echo Packaging the portable zip
|
echo Packaging the portable zip
|
||||||
zip -gr shotcut-win64-$FILENAME_VERSION.zip Shotcut
|
zip -gr mailadler-win64-$FILENAME_VERSION.zip mailadler
|
||||||
echo Packaging the installer
|
echo Packaging the installer
|
||||||
PATH="$HOME/bin:$PATH"
|
PATH="$HOME/bin:$PATH"
|
||||||
pushd $HOME/bin
|
pushd $HOME/bin
|
||||||
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/shotcut-build/iscc632.txz
|
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/mailadler-build/iscc632.txz
|
||||||
tar -xJf iscc632.txz
|
tar -xJf iscc632.txz
|
||||||
popd
|
popd
|
||||||
echo Extracting installer dependencies
|
echo Extracting installer dependencies
|
||||||
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/shotcut-build/innosetup-opera-1.txz
|
curl -kLO --no-progress-meter https://s3.amazonaws.com/misc.meltymedia/mailadler-build/innosetup-opera-1.txz
|
||||||
tar -xJf innosetup-opera-1.txz
|
tar -xJf innosetup-opera-1.txz
|
||||||
rm innosetup-opera-1.txz
|
rm innosetup-opera-1.txz
|
||||||
echo Running Inno Setup Compiler
|
echo Running Inno Setup Compiler
|
||||||
ISCC -Q -O. shotcut.iss
|
ISCC -Q -O. mailadler.iss
|
||||||
echo Signing the installer
|
echo Signing the installer
|
||||||
osslsigncode sign -pkcs12 CodeSignCertificates2023.p12 -readpass CodeSignCertificates.pass -n "Shotcut Installer" -i "https://www.meltytech.com" -t "http://timestamp.digicert.com" -in shotcut-setup.exe -out shotcut-setup-signed.exe
|
osslsigncode sign -pkcs12 CodeSignCertificates2023.p12 -readpass CodeSignCertificates.pass -n "mailadler Installer" -i "https://www.meltytech.com" -t "http://timestamp.digicert.com" -in mailadler-setup.exe -out mailadler-setup-signed.exe
|
||||||
mv shotcut-setup-signed.exe shotcut-win64-$FILENAME_VERSION.exe
|
mv mailadler-setup-signed.exe mailadler-win64-$FILENAME_VERSION.exe
|
||||||
rm shotcut-setup.exe
|
rm mailadler-setup.exe
|
||||||
popd
|
popd
|
||||||
echo Done
|
echo Done
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows-portable
|
name: windows-portable
|
||||||
path: ./build/shotcut-win64-*.zip
|
path: ./build/mailadler-win64-*.zip
|
||||||
|
|
||||||
- name: Upload packages to S3
|
- name: Upload packages to S3
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
@@ -140,5 +140,5 @@ jobs:
|
|||||||
export AWS_DEFAULT_REGION=us-east-1
|
export AWS_DEFAULT_REGION=us-east-1
|
||||||
for file in build/*.{exe,zip}; do
|
for file in build/*.{exe,zip}; do
|
||||||
echo Uploading "$file" to S3
|
echo Uploading "$file" to S3
|
||||||
aws s3 cp "$file" s3://builds.us.meltytech/shotcut/ --no-progress
|
aws s3 cp "$file" s3://builds.us.meltytech/mailadler/ --no-progress
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user