-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
32 changed files
with
1,213 additions
and
277 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 |
---|---|---|
|
@@ -18,8 +18,9 @@ jobs: | |
- name: Install Flutter | ||
uses: subosito/[email protected] | ||
with: | ||
channel: master | ||
channel: beta | ||
|
||
- run: flutter upgrade | ||
- run: flutter pub get | ||
- run: flutter gen-l10n | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
submodules: recursive | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: "master" | ||
channel: "beta" | ||
# cache: true | ||
# TODO: Signing Android application. | ||
# - name: Create Key Store | ||
|
@@ -67,7 +67,7 @@ jobs: | |
submodules: recursive | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: "master" | ||
channel: "beta" | ||
architecture: x64 | ||
# cache: true | ||
|
||
|
@@ -87,7 +87,7 @@ jobs: | |
# body: "" | ||
# tag_name: "bleeding_edge" | ||
# files: | | ||
# bluecherry-dvr-setup.exe | ||
# .exe | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_windows: | ||
|
@@ -101,7 +101,7 @@ jobs: | |
submodules: recursive | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: "master" | ||
channel: "beta" | ||
# cache: true | ||
- run: git config --system core.longpaths true | ||
- run: flutter gen-l10n | ||
|
@@ -113,7 +113,7 @@ jobs: | |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "installer/windows-installer.iss" | ||
shell: cmd | ||
|
||
- run: cp installer\Output\bluecherry-dvr-setup.exe bluecherry-dvr-setup.exe | ||
- run: cp installer\Output\bluecherry-windows-setup.exe bluecherry-windows-setup.exe | ||
|
||
- name: Release | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts | ||
|
@@ -125,7 +125,7 @@ jobs: | |
body: "" | ||
tag_name: "bleeding_edge" | ||
files: | | ||
bluecherry-dvr-setup.exe | ||
bluecherry-windows-setup.exe | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_linux: | ||
|
@@ -146,45 +146,83 @@ jobs: | |
- name: Install Flutter | ||
uses: subosito/[email protected] | ||
with: | ||
# Stable channel is necessary because playback is broken on master | ||
channel: "stable" | ||
channel: "beta" | ||
# cache: true | ||
- name: Build Flutter | ||
|
||
- name: Initiate Flutter | ||
run: | | ||
flutter gen-l10n | ||
flutter pub get | ||
flutter build linux --verbose | ||
- name: Build AppImage | ||
- name: Build Flutter for RPM | ||
run: | | ||
sudo pip3 install git+https://github.com/AppImageCrafters/appimage-builder.git | ||
appimage-builder --skip-tests | ||
cp Bluecherry-latest-x86_64.AppImage bluecherry-linux-x86_64.AppImage | ||
flutter build linux --verbose --dart-define-from-file=linux/env/rpm.json | ||
- name: Build RPM Package | ||
run: | | ||
mkdir -p linux/debian/usr/bin | ||
cp -fr build/linux/x64/release/bundle linux/debian/usr/share/bluecherry_client | ||
ln -sr linux/debian/usr/share/bluecherry_client/bluecherry_client linux/debian/usr/bin/bluecherry_client | ||
sed -i "s:cp -rf :cp -rf $(pwd)/:" linux/rpm/bluecherry.spec | ||
cd linux/debian | ||
sed -i "s:FILES_HERE:$(find usr \( -type l -o -type f \) -follow -print | awk '{printf "/%s\\n", $0}'):" ../rpm/bluecherry.spec | ||
cd ../../ | ||
rpmbuild -bb linux/rpm/bluecherry.spec -D "_topdir $(pwd)/rpmbuild" | ||
cp rpmbuild/RPMS/x86_64/*.rpm bluecherry-linux-x86_64.rpm | ||
- name: Build Flutter for DEB | ||
run: | | ||
flutter clean | ||
flutter gen-l10n | ||
flutter pub get | ||
flutter build linux --verbose --dart-define-from-file=linux/env/deb.json | ||
rm -r linux/debian/usr/bin | ||
mkdir -p linux/debian/usr/bin | ||
cp -fr build/linux/x64/release/bundle linux/debian/usr/share/bluecherry_client | ||
ln -sr linux/debian/usr/share/bluecherry_client/bluecherry_client linux/debian/usr/bin/bluecherry_client | ||
- name: Build DEB Package | ||
run: | | ||
dpkg-deb --build --root-owner-group linux/debian | ||
cp linux/*.deb bluecherry-linux-x86_64.deb | ||
- name: Build Flutter for Tarball | ||
run: | | ||
flutter clean | ||
flutter gen-l10n | ||
flutter pub get | ||
flutter build linux --verbose --dart-define-from-file=linux/env/tar.gz.json | ||
rm -r linux/debian/usr/bin | ||
mkdir -p linux/debian/usr/bin | ||
cp -fr build/linux/x64/release/bundle linux/debian/usr/share/bluecherry_client | ||
ln -sr linux/debian/usr/share/bluecherry_client/bluecherry_client linux/debian/usr/bin/bluecherry_client | ||
- name: Build Tarball | ||
run: | | ||
mkdir -p AppDir/ | ||
cp -r linux/debian/usr AppDir/ | ||
ln -sr AppDir/usr/bin/bluecherry_client AppDir/bluecherry_client | ||
tar czf bluecherry-linux-x86_64.tar.gz -C AppDir/ . | ||
- name: Build Flutter for AppImage | ||
run: | | ||
rm -r AppDir/ | ||
mkdir -p AppDir/ | ||
flutter clean | ||
flutter gen-l10n | ||
flutter pub get | ||
flutter build linux --verbose --dart-define-from-file=linux/env/appimage.json | ||
- name: Build AppImage | ||
run: | | ||
sudo pip3 install git+https://github.com/AppImageCrafters/appimage-builder.git | ||
appimage-builder --skip-tests | ||
cp Bluecherry-latest-x86_64.AppImage bluecherry-linux-x86_64.AppImage | ||
- name: Release | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts | ||
if: ${{ github.event_name == 'push' }} | ||
|
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
.fvm/ | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"> | ||
<channel> | ||
<title>Bluecherry - Appcast</title> | ||
<item> | ||
<title>Version 3.0.0-beta8</title> | ||
<description>Linux support and a bunch of bug fixes and performance improvements.</description> | ||
<pubDate>Thu, 29 Jun 2023</pubDate> | ||
</item> | ||
|
||
<item> | ||
<title>Version 3.0.0-beta7</title> | ||
<description>PTZ cameras support, reworked grid on mobile and bug fixes.</description> | ||
<pubDate>Fri, 26 May 2023</pubDate> | ||
</item> | ||
|
||
<item> | ||
<title>Version 3.0.0-beta6</title> | ||
<description>Focused on bug fixes</description> | ||
<pubDate>Thu, 16 Mar 2023</pubDate> | ||
</item> | ||
|
||
<item> | ||
<title>Version 3.0.0-beta5</title> | ||
<description>Events Timeline</description> | ||
<pubDate>Thu, 2 Mar 2023</pubDate> | ||
</item> | ||
|
||
<item> | ||
<title>Version 3.0.0-beta4</title> | ||
<description>Playback updates. Keyboard support</description> | ||
<pubDate>Thu, 2 Feb 2023</pubDate> | ||
</item> | ||
</channel> | ||
</rss> |
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.