mirror of
https://github.com/smartfrigde/armcord.git
synced 2026-08-19 14:23:23 +00:00
Compare commits
No commits in common. "d2df28394b5811fb5bb78b115645dd22ca4cb39a" and "df7fc5328ff6294762ed1199225392f57b5584f5" have entirely different histories.
d2df28394b
...
df7fc5328f
8 changed files with 42 additions and 145 deletions
|
|
@ -1,47 +0,0 @@
|
||||||
# These are supposed to run and tested indenpendently, not at the same time. Please
|
|
||||||
# build them however you like, but always run each at a time if testing for GUI.
|
|
||||||
|
|
||||||
services:
|
|
||||||
debian-bookworm:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./docker/Dockerfile.bookworm
|
|
||||||
ports:
|
|
||||||
- "5900:5900"
|
|
||||||
volumes:
|
|
||||||
- ./docker/start.sh:/start.sh
|
|
||||||
command: ["/bin/bash", "/start.sh"]
|
|
||||||
|
|
||||||
archlinux:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./docker/Dockerfile.pacman
|
|
||||||
ports:
|
|
||||||
- "5901:5900"
|
|
||||||
volumes:
|
|
||||||
- ./docker/start.sh:/start.sh
|
|
||||||
command: ["/bin/bash", "/start.sh"]
|
|
||||||
|
|
||||||
ubuntu:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./docker/Dockerfile.ubuntu
|
|
||||||
ports:
|
|
||||||
- "5902:5900"
|
|
||||||
volumes:
|
|
||||||
- ./docker/start.sh:/start.sh
|
|
||||||
command: ["/bin/bash", "/start.sh"]
|
|
||||||
|
|
||||||
debian-trixie:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./docker/Dockerfile.trixie
|
|
||||||
ports:
|
|
||||||
- "5900:5900"
|
|
||||||
volumes:
|
|
||||||
- ./docker/start.sh:/start.sh
|
|
||||||
command: ["/bin/bash", "/start.sh"]
|
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
driver: bridge
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
FROM debian:bookworm
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY ./dist/*.deb .
|
|
||||||
|
|
||||||
RUN <<EOF
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install ./*.deb -y
|
|
||||||
apt-get install -qqy x11-apps x11vnc xvfb
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd
|
|
||||||
|
|
||||||
COPY docker/start.sh /start.sh
|
|
||||||
RUN chmod +x /start.sh
|
|
||||||
|
|
||||||
EXPOSE 5900
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
|
||||||
21
docker/Dockerfile.deb
Normal file
21
docker/Dockerfile.deb
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM ubuntu
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./dist/*.deb .
|
||||||
|
|
||||||
|
RUN apt-get update -y && apt-get upgrade -y
|
||||||
|
|
||||||
|
RUN apt-get install ./*.deb -y
|
||||||
|
|
||||||
|
RUN apt-get install -qqy x11-apps x11vnc xvfb
|
||||||
|
|
||||||
|
RUN mkdir ~/.vnc
|
||||||
|
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
|
||||||
|
|
||||||
|
COPY docker/start.sh /start.sh
|
||||||
|
RUN chmod +x /start.sh
|
||||||
|
|
||||||
|
EXPOSE 5900
|
||||||
|
|
||||||
|
CMD ["/start.sh"]
|
||||||
|
|
@ -4,14 +4,14 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY ./dist/*.pacman .
|
COPY ./dist/*.pacman .
|
||||||
|
|
||||||
RUN <<EOF
|
RUN pacman -Syu --noconfirm
|
||||||
pacman -Syu --noconfirm
|
|
||||||
pacman -U --noconfirm ./*.pacman
|
|
||||||
pacman -Syu --noconfirm x11vnc xorg-server-xvfb
|
|
||||||
|
|
||||||
EOF
|
RUN pacman -U --noconfirm ./*.pacman
|
||||||
|
|
||||||
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd
|
RUN pacman -Syu --noconfirm x11vnc xorg-server-xvfb
|
||||||
|
|
||||||
|
RUN mkdir ~/.vnc
|
||||||
|
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
|
||||||
|
|
||||||
COPY docker/start.sh /start.sh
|
COPY docker/start.sh /start.sh
|
||||||
RUN chmod +x /start.sh
|
RUN chmod +x /start.sh
|
||||||
|
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
FROM debian:trixie
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY ./dist/*.deb .
|
|
||||||
|
|
||||||
RUN <<EOF
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install ./*.deb -y
|
|
||||||
apt-get install -qqy x11-apps x11vnc xvfb
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd
|
|
||||||
|
|
||||||
COPY docker/start.sh /start.sh
|
|
||||||
RUN chmod +x /start.sh
|
|
||||||
|
|
||||||
EXPOSE 5900
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
FROM ubuntu
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY ./dist/*.deb .
|
|
||||||
|
|
||||||
RUN <<EOF
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install ./*.deb -y
|
|
||||||
apt-get install -qqy x11-apps x11vnc xvfb
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd
|
|
||||||
|
|
||||||
COPY docker/start.sh /start.sh
|
|
||||||
RUN chmod +x /start.sh
|
|
||||||
|
|
||||||
EXPOSE 5900
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
|
||||||
|
|
@ -102,19 +102,7 @@ export const config: Configuration = {
|
||||||
deb: {
|
deb: {
|
||||||
category: "Network",
|
category: "Network",
|
||||||
icon: "build/icon.icns",
|
icon: "build/icon.icns",
|
||||||
depends: [
|
depends: ["libasound2", "libnspr4", "libnss3", "libasound2t64", "libasound2-plugins"],
|
||||||
"libasound2",
|
|
||||||
"libnspr4",
|
|
||||||
"libnss3",
|
|
||||||
"libasound2-plugins",
|
|
||||||
"libatk1.0-0 | libatk1.0-0t64",
|
|
||||||
"libatk-bridge2.0-0",
|
|
||||||
"libgbm1",
|
|
||||||
"libasound2t64 | libasound2",
|
|
||||||
"libcups2",
|
|
||||||
"libgtk3.0 | libgtk-3-0",
|
|
||||||
"at-spi2-common",
|
|
||||||
],
|
|
||||||
desktop: {
|
desktop: {
|
||||||
entry: {
|
entry: {
|
||||||
Actions: availableActions,
|
Actions: availableActions,
|
||||||
|
|
|
||||||
|
|
@ -264,22 +264,20 @@ async function load() {
|
||||||
addStyle("legcord://assets/css/discord.css");
|
addStyle("legcord://assets/css/discord.css");
|
||||||
});
|
});
|
||||||
injectJS("legcord://assets/js/patchVencordQuickCSS.js");
|
injectJS("legcord://assets/js/patchVencordQuickCSS.js");
|
||||||
|
|
||||||
// Settings info version injection
|
// Settings info version injection
|
||||||
addScript(`(() => {
|
const observer = new MutationObserver(() => {
|
||||||
const versionElm = document.createElement("style");
|
if (document.body.querySelector("#ac-ver")) return;
|
||||||
versionElm.appendChild(document.createTextNode(\`
|
|
||||||
div[class*="compactInfo"] {
|
const info = document.body.querySelector('[class*="sidebar"] [class*="compactInfo"]');
|
||||||
margin-bottom: 15px;
|
const host = info?.parentElement;
|
||||||
}
|
if (!host || !/(stable|ptb|canary) \d+|Electron|Chromium/i.test(host.textContent)) return;
|
||||||
div[class*="compactInfo"] > span::before {
|
|
||||||
content: "Legcord Version: ${version}";
|
const el = host.querySelector("span")!.cloneNode() as HTMLSpanElement;
|
||||||
color: inherit;
|
el.id = "ac-ver";
|
||||||
position: absolute;
|
el.textContent = `Legcord Version: ${version}`;
|
||||||
margin-top: 20px;
|
info.after(el);
|
||||||
}
|
observer.disconnect();
|
||||||
\`));
|
});
|
||||||
document.body.append(versionElm);
|
observer.observe(document.body, { childList: true, subtree: true });
|
||||||
})()`);
|
|
||||||
}
|
}
|
||||||
load();
|
load();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue