Skip to content

Commit aee2cad

Browse files
committed
Merge branch '79-update-acelink'
2 parents 0291aff + d2cce81 commit aee2cad

File tree

6 files changed

+32
-48
lines changed

6 files changed

+32
-48
lines changed

Ace Link/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>2.0.6</string>
20+
<string>2.1.0</string>
2121
<key>CFBundleURLTypes</key>
2222
<array>
2323
<dict>

Ace Link/Services/AceStreamEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class AceStreamEngine: Service {
2424
"--publish=\(AppConstants.Docker.proxyPort):\(AppConstants.Docker.proxyPort)",
2525
"--name=\(AppConstants.Docker.containerName)",
2626
AppConstants.Docker.image,
27-
"/opt/acestream/start-engine",
2827
"--client-console",
2928
"--access-token=\(token)",
3029
"--allow-user-config",
@@ -45,6 +44,7 @@ class AceStreamEngine: Service {
4544
override func check() {
4645
let serverURL = AppConstants.Docker.baseURL
4746
.appendingPathComponent("/webui/app/\(token)/server")
47+
os_log("Check server up at %{public}@ …", serverURL.absoluteString)
4848
urlSession.dataTask(with: serverURL) { data, _, _ in
4949
if let data = data, let str = String(data: data, encoding: .utf8) {
5050
self.accessToken = str.matches(for: "\"access_token\": \"([^\"]{64})\"").first

Ace Link/Services/PlaylistServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PlaylistServer: Service {
1414

1515
override func run() {
1616
let cmdInContainer = "echo '\(stream.m3uData)' > acelink.m3u8;" +
17-
"python -m SimpleHTTPServer \(AppConstants.Docker.proxyPort)"
17+
"python3 -m http.server \(AppConstants.Docker.proxyPort)"
1818
_ = Process.runCommand(
1919
"docker", "exec", "--detach", "--workdir=/acelink", engine.containerID!,
2020
"sh", "-c", cmdInContainer

Dockerfile

Lines changed: 27 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,36 @@
1-
# syntax=docker/dockerfile:experimental
2-
FROM ubuntu:bionic
3-
4-
# Install system packages
5-
RUN set -ex && \
6-
apt-get update && \
7-
apt-get install -yq --no-install-recommends \
8-
ca-certificates \
9-
python2.7 \
10-
libpython2.7 \
11-
net-tools \
12-
python-setuptools \
13-
python-m2crypto \
14-
python-apsw \
15-
python-lxml \
16-
wget && \
17-
apt-get clean && \
18-
rm -rf /var/lib/apt/lists/* /var/cache/*
19-
20-
# Install Ace Stream
21-
# https://wiki.acestream.media/Download#Linux
22-
RUN mkdir -p /opt/acestream && \
23-
wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.49_ubuntu_18.04_x86_64.tar.gz" && \
24-
echo "d2ed7bdc38f6a47c05da730f7f6f600d48385a7455d922a2688f7112202ee19e acestream.tgz" | sha256sum --check && \
25-
tar --extract --gzip --directory /opt/acestream --file acestream.tgz && \
26-
rm -rf acestream.tgz && \
27-
/opt/acestream/start-engine --version
28-
29-
# Acestream 3.1.49 install is missing library files,
30-
# but we can grab these from a previous release.
31-
# http://oldforum.acestream.media/index.php?topic=12448.msg26872
32-
RUN wget --no-verbose --output-document acestream.tgz "https://download.acestream.media/linux/acestream_3.1.16_ubuntu_16.04_x86_64.tar.gz" && \
33-
echo "452bccb8ae8b5ff4497bbb796081dcf3fec2b699ba9ce704107556a3d6ad2ad7 acestream.tgz" | sha256sum --check && \
34-
tar --extract --gzip --strip-components 1 --directory /tmp --file acestream.tgz && \
35-
cp /tmp/lib/acestreamengine/py*.so /opt/acestream/lib/acestreamengine/ && \
36-
cp /tmp/lib/*.so* /usr/lib/x86_64-linux-gnu/ && \
37-
rm -rf tmp/* acestream.tgz
1+
# syntax=docker/dockerfile:1
2+
FROM --platform=linux/amd64 ubuntu:focal
3+
4+
ENV LC_ALL="C.UTF-8" \
5+
LANG="C.UTF-8" \
6+
DOWNLOAD_URL="https://download.acestream.media/linux/acestream_3.2.3_ubuntu_18.04_x86_64_py3.8.tar.gz" \
7+
CHECKSUM="bf45376f1f28aaff7d9849ff991bf34a6b9a65542460a2344a8826126c33727d"
8+
9+
# Install system packages.
10+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked\
11+
--mount=type=cache,target=/var/lib/apt,sharing=locked\
12+
--mount=type=tmpfs,target=/tmp\
13+
set -ex;\
14+
apt-get update;\
15+
apt-get install -yq --no-install-recommends ca-certificates python3.8 libpython3.8 python3-pip wget;\
16+
mkdir -p /opt/acestream;\
17+
wget --no-verbose --output-document /opt/acestream/acestream.tgz $DOWNLOAD_URL;\
18+
echo "$CHECKSUM /opt/acestream/acestream.tgz" | sha256sum --check;\
19+
tar --extract --gzip --directory /opt/acestream --file /opt/acestream/acestream.tgz;\
20+
rm /opt/acestream/acestream.tgz;\
21+
python3 -m pip install -r /opt/acestream/requirements.txt;\
22+
/opt/acestream/start-engine --version;
3823

3924
# Overwrite disfunctional Ace Stream web player with a working videojs player,
4025
# Access at http://127.0.0.1:6878/webui/player/<acestream id>
4126
COPY player.html /opt/acestream/data/webui/html/player.html
42-
43-
# Prep dir
44-
RUN mkdir /acelink
45-
4627
COPY acestream.conf /opt/acestream/acestream.conf
47-
ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"]
4828

49-
HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null'
29+
# Prep dir serving m3u8 files.
30+
RUN mkdir /acelink
5031

5132
EXPOSE 6878
5233
EXPOSE 8621
34+
35+
ENTRYPOINT ["/opt/acestream/start-engine", "@/opt/acestream/acestream.conf"]
36+
HEALTHCHECK CMD wget -q -t1 -O- 'http://127.0.0.1:6878/webui/api/service?method=get_version' | grep '"error": null'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Ace Link is a menu bar app that allows playing Ace Streams on macOS.
44

55
Play an Ace Stream or Magnet in any media player by pasting the URL in the Ace Link menu, or open an acestream or magnet link in Ace Link.
66

7-
## [Download for macOS](https://github.com/blaise-io/acelink/releases/download/2.0.6/Ace.Link.2.0.6.dmg)
7+
## [Download for macOS](https://github.com/blaise-io/acelink/releases/download/2.1.0/Ace.Link.2.1.0.dmg)
88

99
- Install using HomeBrew: `brew install --cask ace-link`
1010
- [Download an older version](https://github.com/blaise-io/acelink/releases)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.6
1+
2.1.0

0 commit comments

Comments
 (0)