mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-06-25 16:30:57 +00:00
Compare commits
5 Commits
572c0ab468
...
v0.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| c2d9627405 | |||
| 8e1ea768b0 | |||
| dc1e02cb9f | |||
| e9b4057e32 | |||
| fa5bc42908 |
@@ -11,7 +11,6 @@ jobs:
|
|||||||
build-arch:
|
build-arch:
|
||||||
runs-on: arch-builder
|
runs-on: arch-builder
|
||||||
steps:
|
steps:
|
||||||
- run: pacman --noconfirm -Sy nodejs npm
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: wget -O /root/repository.key https://git.tesseslanguage.com/api/packages/tesses50/arch/repository.key
|
- run: wget -O /root/repository.key https://git.tesseslanguage.com/api/packages/tesses50/arch/repository.key
|
||||||
- run: pacman-key --add /root/repository.key
|
- run: pacman-key --add /root/repository.key
|
||||||
@@ -40,6 +39,7 @@ jobs:
|
|||||||
bash build-tars.sh
|
bash build-tars.sh
|
||||||
working-directory: ./Packaging/Linux
|
working-directory: ./Packaging/Linux
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
with:
|
with:
|
||||||
@@ -64,6 +64,7 @@ jobs:
|
|||||||
|
|
||||||
working-directory: ./Packaging/Windows
|
working-directory: ./Packaging/Windows
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
with:
|
with:
|
||||||
|
|||||||
39
Dockerfile.superslim
Normal file
39
Dockerfile.superslim
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
FROM --platform=linux/386 scratch
|
||||||
|
COPY --from=i686 . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/amd64 scratch
|
||||||
|
COPY --from=x86_64 . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/ppc scratch
|
||||||
|
COPY --from=powerpc . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/ppc64 scratch
|
||||||
|
COPY --from=powerpc64 . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/arm scratch
|
||||||
|
COPY --from=armv7a . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/arm64 scratch
|
||||||
|
COPY --from=aarch64 . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/riscv32 scratch
|
||||||
|
COPY --from=riscv32 . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
|
|
||||||
|
FROM --platform=linux/riscv64 scratch
|
||||||
|
COPY --from=riscv64 . /
|
||||||
|
ENV CROSSLANG_CONTAINER=1
|
||||||
|
ENTRYPOINT ["/usr/bin/crossint"]
|
||||||
@@ -21,4 +21,12 @@ cd build
|
|||||||
cmake -S ../../../../ -B . -DTESSESFRAMEWORK_ENABLE_SHARED=OFF -DTESSESFRAMEWORK_FETCHCONTENT=ON -DTESSESFRAMEWORK_ENABLE_STATIC=ON -DCMAKE_TOOLCHAIN_FILE="$DIR/toolchain.cmake" -DCROSSLANG_ENABLE_SUPERSLIM=ON -DCMAKE_BUILD_TYPE=Release
|
cmake -S ../../../../ -B . -DTESSESFRAMEWORK_ENABLE_SHARED=OFF -DTESSESFRAMEWORK_FETCHCONTENT=ON -DTESSESFRAMEWORK_ENABLE_STATIC=ON -DCMAKE_TOOLCHAIN_FILE="$DIR/toolchain.cmake" -DCROSSLANG_ENABLE_SUPERSLIM=ON -DCMAKE_BUILD_TYPE=Release
|
||||||
make -j`nproc`
|
make -j`nproc`
|
||||||
cp crosslang ../../../../artifacts/crosslang-slim-$TOOLCHAIN
|
cp crosslang ../../../../artifacts/crosslang-slim-$TOOLCHAIN
|
||||||
|
mkdir -p ../../../../builds/containers/$ARCH/usr/bin
|
||||||
|
cp crosslang ../../../../builds/containers/$ARCH/usr/bin/crosslang
|
||||||
|
ln -s crosslang ../../../../builds/containers/$ARCH/usr/bin/crossint
|
||||||
|
ln -s crosslang ../../../../builds/containers/$ARCH/usr/bin/crossc
|
||||||
|
ln -s crosslang ../../../../builds/containers/$ARCH/usr/bin/crossvm
|
||||||
|
ln -s crosslang ../../../../builds/containers/$ARCH/usr/bin/crossarchivecreate
|
||||||
|
ln -s crosslang ../../../../builds/containers/$ARCH/usr/bin/crossarchiveextract
|
||||||
|
ln -s crosslang ../../../../builds/containers/$ARCH/usr/bin/crossdump
|
||||||
rm -rf "$DIR"
|
rm -rf "$DIR"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#ARCH="i686" TOOLCHAIN="i686-linux-musl" bash build-slim.sh
|
ARCH="i686" TOOLCHAIN="i686-linux-musl" bash build-slim.sh
|
||||||
#ARCH="x86_64" TOOLCHAIN="x86_64-linux-musl" bash build-slim.sh
|
ARCH="x86_64" TOOLCHAIN="x86_64-linux-musl" bash build-slim.sh
|
||||||
#ARCH="powerpc" TOOLCHAIN="powerpc-linux-musl" bash build-slim.sh
|
ARCH="powerpc" TOOLCHAIN="powerpc-linux-musl" bash build-slim.sh
|
||||||
#ARCH="powerpc" TOOLCHAIN="powerpc64-linux-musl" bash build-slim.sh
|
ARCH="powerpc64" TOOLCHAIN="powerpc64-linux-musl" bash build-slim.sh
|
||||||
#ARCH="aarch64" TOOLCHAIN="aarch64-linux-musl" bash build-slim.sh
|
ARCH="armv7a" TOOLCHAIN="armv7l-linux-musleabihf" bash build-slim.sh
|
||||||
#ARCH="armv7a" TOOLCHAIN="armv7l-linux-musleabihf" bash build-slim.sh
|
ARCH="aarch64" TOOLCHAIN="aarch64-linux-musl" bash build-slim.sh
|
||||||
ARCH="riscv32" TOOLCHAIN="riscv32-linux-musl" bash build-slim.sh
|
ARCH="riscv32" TOOLCHAIN="riscv32-linux-musl" bash build-slim.sh
|
||||||
ARCH="riscv64" TOOLCHAIN="riscv64-linux-musl" bash build-slim.sh
|
ARCH="riscv64" TOOLCHAIN="riscv64-linux-musl" bash build-slim.sh
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "CrossLang.hpp"
|
#include "CrossLang.hpp"
|
||||||
|
#include "TessesFramework/Platform/Environment.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -10,6 +11,27 @@ namespace Tesses::CrossLang::Programs
|
|||||||
|
|
||||||
static bool Download(Tesses::Framework::Filesystem::VFSPath filename,std::shared_ptr<Tesses::Framework::Filesystem::VFS> vfs)
|
static bool Download(Tesses::Framework::Filesystem::VFSPath filename,std::shared_ptr<Tesses::Framework::Filesystem::VFS> vfs)
|
||||||
{
|
{
|
||||||
|
auto inContainer=Platform::Environment::GetVariable("CROSSLANG_CONTAINER");
|
||||||
|
if(inContainer && *inContainer=="1" || *inContainer=="y" || *inContainer=="Y")
|
||||||
|
{
|
||||||
|
HttpRequest req;
|
||||||
|
req.url = "https://downloads.tesses.net/ShellPackage.crvm";
|
||||||
|
req.method = "GET";
|
||||||
|
HttpResponse resp(req);
|
||||||
|
if(resp.statusCode == StatusCode::OK)
|
||||||
|
{
|
||||||
|
auto strm = resp.ReadAsStream();
|
||||||
|
CrossLang::CrossArchiveExtract(strm, vfs);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
std::cout << "Error when fetching the script error: " << std::to_string(resp.statusCode) << " " << HttpUtils::StatusCodeString(resp.statusCode) << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
std::cout << "File " << filename.ToString() << " not found, do you want to download the installer from: https://downloads.tesses.net/ShellPackage.crvm (this may install other stuff as well) (Y/n)? ";
|
std::cout << "File " << filename.ToString() << " not found, do you want to download the installer from: https://downloads.tesses.net/ShellPackage.crvm (this may install other stuff as well) (Y/n)? ";
|
||||||
|
|||||||
Reference in New Issue
Block a user