mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-04-16 07:37:03 +00:00
Compare commits
3 Commits
447e9e6d37
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 46850e8edf | |||
| 86c7d85f0e | |||
| 45dcd9e7c5 |
70
.gitea/workflows/tag.yaml
Normal file
70
.gitea/workflows/tag.yaml
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
name: Build and Deploy on Tag
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITEA_AUTH: ${{ secrets.MY_GITEA_AUTH }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-arch:
|
||||||
|
runs-on: arch-builder
|
||||||
|
steps:
|
||||||
|
- run: pacman --noconfirm -Sy nodejs npm
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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 --config /opt/cross/ppc/pacman.conf --add /root/repository.key
|
||||||
|
- run: printf "[tesses50.git.tesseslanguage.com]\nSigLevel = Optional TrustAll\nServer = https://git.tesseslanguage.com/api/packages/tesses50/arch/core/\$arch\n" >> /etc/pacman.conf
|
||||||
|
- run: printf "[tesses50.git.tesseslanguage.com]\nSigLevel = Optional TrustAll\nServer = https://git.tesseslanguage.com/api/packages/tesses50/arch/core/\$arch\n" >> /opt/cross/ppc/pacman.conf
|
||||||
|
- run: pacman --noconfirm -Sy mbedtls curl tesses-framework
|
||||||
|
- run: pacman --config /opt/cross/ppc/pacman.conf --noconfirm -Sy mbedtls tesses-framework
|
||||||
|
- run: cp Packaging/Linux/PKGBUILD /home/build/PKGBUILD
|
||||||
|
- run: cp Packaging/Linux/build-arch.sh /home/build/build-arch.sh
|
||||||
|
- run: chmod 755 /home/build/build-arch.sh
|
||||||
|
- run: chown build:build /home/build/PKGBUILD
|
||||||
|
- run: chown build:build /home/build/build-arch.sh
|
||||||
|
- run: su build -c /home/build/build-arch.sh
|
||||||
|
build-jammy:
|
||||||
|
runs-on: deb-builder-jammy
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build for jammy, noble
|
||||||
|
run: |
|
||||||
|
mkdir ../../artifacts
|
||||||
|
apt update -y
|
||||||
|
apt install -y pkg-config git
|
||||||
|
bash build-ubuntu-jammy.sh
|
||||||
|
bash push-ubuntu-jammy.sh
|
||||||
|
bash build-tars.sh
|
||||||
|
working-directory: ./Packaging/Linux
|
||||||
|
- uses: akkuman/gitea-release-action@v1
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
artifacts/**
|
||||||
|
build-plucky:
|
||||||
|
runs-on: deb-builder-plucky
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build for plucky, resolute
|
||||||
|
run: |
|
||||||
|
mkdir ../../artifacts
|
||||||
|
apt update -y
|
||||||
|
apt install -y pkg-config git gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gcc-mingw-w64-i686 g++-mingw-w64-i686 nsis
|
||||||
|
bash build-ubuntu-plucky.sh
|
||||||
|
bash push-ubuntu-plucky.sh
|
||||||
|
working-directory: ./Packaging/Linux
|
||||||
|
|
||||||
|
- name: Build for windows
|
||||||
|
run: bash build.sh
|
||||||
|
|
||||||
|
working-directory: ./Packaging/Windows
|
||||||
|
- uses: akkuman/gitea-release-action@v1
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
artifacts/**
|
||||||
@@ -1,18 +1,21 @@
|
|||||||
version: 39
|
version: 43
|
||||||
jobs:
|
jobs:
|
||||||
- name: Build for x86_64
|
- name: Build for x86_64
|
||||||
steps:
|
steps:
|
||||||
- !CheckoutStep
|
- type: CheckoutStep
|
||||||
name: Checkout
|
name: Checkout
|
||||||
cloneCredential: !DefaultCredential {}
|
cloneCredential:
|
||||||
|
type: DefaultCredential
|
||||||
withLfs: true
|
withLfs: true
|
||||||
withSubmodules: false
|
withSubmodules: false
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: SUCCESSFUL
|
||||||
- !CommandStep
|
optional: false
|
||||||
|
- type: CommandStep
|
||||||
name: Execute build
|
name: Execute build
|
||||||
runInContainer: true
|
runInContainer: true
|
||||||
image: onedev.site.tesses.net/tesses-framework/tesses-framework:latest
|
image: onedev.site.tesses.net/tesses-framework/tesses-framework:latest
|
||||||
interpreter: !DefaultInterpreter
|
interpreter:
|
||||||
|
type: DefaultInterpreter
|
||||||
commands: |
|
commands: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
@@ -20,111 +23,32 @@ jobs:
|
|||||||
make -j12
|
make -j12
|
||||||
make install DESTDIR=../out
|
make install DESTDIR=../out
|
||||||
useTTY: true
|
useTTY: true
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: SUCCESSFUL
|
||||||
- !BuildImageStep
|
optional: false
|
||||||
|
- type: BuildImageStep
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
dockerfile: Dockerfile.run
|
dockerfile: Dockerfile.run
|
||||||
output: !RegistryOutput
|
output:
|
||||||
|
type: RegistryOutput
|
||||||
tags: onedev.site.tesses.net/crosslang/crosslang:latest onedev.site.tesses.net/crosslang/crosslang:@commit_hash@
|
tags: onedev.site.tesses.net/crosslang/crosslang:latest onedev.site.tesses.net/crosslang/crosslang:@commit_hash@
|
||||||
registryLogins:
|
registryLogins:
|
||||||
- registryUrl: '@server_url@'
|
- registryUrl: '@server_url@'
|
||||||
userName: '@job_token@'
|
userName: '@job_token@'
|
||||||
passwordSecret: dockersecret
|
passwordSecret: dockersecret
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: SUCCESSFUL
|
||||||
- !CommandStep
|
optional: false
|
||||||
name: Build archlinux
|
|
||||||
runInContainer: true
|
|
||||||
image: git.tesseslanguage.com/tesses50/arch-builds:2025-11-11
|
|
||||||
interpreter: !DefaultInterpreter
|
|
||||||
commands: |
|
|
||||||
wget -O /root/repository.key https://git.tesseslanguage.com/api/packages/tesses50/arch/repository.key
|
|
||||||
pacman-key --add /root/repository.key
|
|
||||||
pacman-key --config /opt/cross/ppc/pacman.conf --add /root/repository.key
|
|
||||||
printf "[tesses50.git.tesseslanguage.com]\nSigLevel = Optional TrustAll\nServer = https://git.tesseslanguage.com/api/packages/tesses50/arch/core/\$arch\n" >> /etc/pacman.conf
|
|
||||||
printf "[tesses50.git.tesseslanguage.com]\nSigLevel = Optional TrustAll\nServer = https://git.tesseslanguage.com/api/packages/tesses50/arch/core/\$arch\n" >> /opt/cross/ppc/pacman.conf
|
|
||||||
|
|
||||||
pacman --noconfirm -Sy mbedtls curl tesses-framework
|
|
||||||
pacman --config /opt/cross/ppc/pacman.conf --noconfirm -Sy mbedtls tesses-framework
|
|
||||||
cp Packaging/Linux/PKGBUILD /home/build/PKGBUILD
|
|
||||||
cp Packaging/Linux/build-arch.sh /home/build/build-arch.sh
|
|
||||||
chmod 755 /home/build/build-arch.sh
|
|
||||||
chown build:build /home/build/PKGBUILD
|
|
||||||
chown build:build /home/build/build-arch.sh
|
|
||||||
su build -c /home/build/build-arch.sh
|
|
||||||
envVars:
|
|
||||||
- name: GITEA_AUTH
|
|
||||||
value: '@secret:GITEA_AUTH@'
|
|
||||||
useTTY: true
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
||||||
- !CommandStep
|
|
||||||
name: Build and Publish Deb Package (Plucky)
|
|
||||||
runInContainer: true
|
|
||||||
image: onedev.site.tesses.net/dependencies/debbuilder/plucky:latest
|
|
||||||
interpreter: !DefaultInterpreter
|
|
||||||
commands: |
|
|
||||||
mkdir artifacts
|
|
||||||
apt update -y
|
|
||||||
apt install -y pkg-config git gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gcc-mingw-w64-i686 g++-mingw-w64-i686 nsis
|
|
||||||
cd Packaging/Linux
|
|
||||||
bash build-ubuntu-plucky.sh
|
|
||||||
bash push-ubuntu-plucky.sh
|
|
||||||
cd ../Windows
|
|
||||||
bash build.sh
|
|
||||||
envVars:
|
|
||||||
- name: GITEA_AUTH
|
|
||||||
value: '@secret:GITEA_AUTH@'
|
|
||||||
- name: BUILD_NO
|
|
||||||
value: '@build_number@'
|
|
||||||
useTTY: true
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
||||||
- !CommandStep
|
|
||||||
name: Build and Publish Deb Package
|
|
||||||
runInContainer: true
|
|
||||||
image: onedev.site.tesses.net/dependencies/debbuilder/jammy:latest
|
|
||||||
interpreter: !DefaultInterpreter
|
|
||||||
commands: |
|
|
||||||
apt update -y
|
|
||||||
apt install -y pkg-config git
|
|
||||||
cd Packaging/Linux
|
|
||||||
bash build-ubuntu-jammy.sh
|
|
||||||
bash push-ubuntu-jammy.sh
|
|
||||||
bash build-tars.sh
|
|
||||||
envVars:
|
|
||||||
- name: GITEA_AUTH
|
|
||||||
value: '@secret:GITEA_AUTH@'
|
|
||||||
- name: CPKG_KEY
|
|
||||||
value: '@secret:CPKG_KEY@'
|
|
||||||
- name: BUILD_NO
|
|
||||||
value: '@build_number@'
|
|
||||||
useTTY: true
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
||||||
- !SCPCommandStep
|
|
||||||
name: Copy Files
|
|
||||||
privateKeySecret: TRUENAS_SSH
|
|
||||||
source: artifacts
|
|
||||||
target: mike@@10.137.42.30:/mnt/storage24tb/Files/Public/CrossLang/@build_number@
|
|
||||||
options: -r
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
||||||
- !SSHCommandStep
|
|
||||||
name: Link latest
|
|
||||||
remoteMachine: 10.137.42.30
|
|
||||||
userName: mike
|
|
||||||
privateKeySecret: TRUENAS_SSH
|
|
||||||
commands: |
|
|
||||||
cd /mnt/storage24tb/Files/Public/CrossLang
|
|
||||||
rm -f latest
|
|
||||||
ln -s @build_number@ latest
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
||||||
triggers:
|
triggers:
|
||||||
- !DependencyFinishedTrigger
|
- type: DependencyFinishedTrigger
|
||||||
projects: tesses-framework
|
projects: tesses-framework
|
||||||
- !BranchUpdateTrigger
|
- type: BranchUpdateTrigger
|
||||||
branches: master
|
branches: master
|
||||||
|
userMatch: anyone
|
||||||
projects: crosslang
|
projects: crosslang
|
||||||
projectDependencies:
|
projectDependencies:
|
||||||
- projectPath: tesses-framework
|
- projectPath: tesses-framework
|
||||||
buildProvider: !LastFinishedBuild
|
buildProvider:
|
||||||
|
type: LastFinishedBuild
|
||||||
jobName: Build for x86_64
|
jobName: Build for x86_64
|
||||||
artifacts: '*'
|
artifacts: '*'
|
||||||
retryCondition: never
|
retryCondition: never
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ install(TARGETS ${TessesCrossLangLibs}
|
|||||||
)
|
)
|
||||||
|
|
||||||
install(FILES include/CrossLang.hpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
install(FILES include/CrossLang.hpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/CrossLangVersion.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
install(EXPORT TessesCrossLangTargets
|
install(EXPORT TessesCrossLangTargets
|
||||||
FILE TessesCrossLangTargets.cmake
|
FILE TessesCrossLangTargets.cmake
|
||||||
NAMESPACE TessesCrossLang::
|
NAMESPACE TessesCrossLang::
|
||||||
|
|||||||
@@ -21,18 +21,7 @@ fi
|
|||||||
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
|
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
|
||||||
# a description of each element in the source array.
|
# a description of each element in the source array.
|
||||||
|
|
||||||
pkgver() {
|
|
||||||
cd "$srcdir/${pkgname}"
|
|
||||||
|
|
||||||
# The examples below are not absolute and need to be adapted to each repo. The
|
|
||||||
# primary goal is to generate version numbers that will increase according to
|
|
||||||
# pacman's version comparisons with later commits to the repo. The format
|
|
||||||
# VERSION='VER_NUM.rREV_NUM.HASH', or a relevant subset in case VER_NUM or HASH
|
|
||||||
# are not available, is recommended.
|
|
||||||
|
|
||||||
# Git, no tags available
|
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
||||||
}
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$srcdir/${pkgname}"
|
cd "$srcdir/${pkgname}"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export BUILD=$(($BUILD_NO-153))
|
|
||||||
export DEB_VERSION=0.0.1-$BUILD
|
export DEB_VERSION=0.0.1
|
||||||
@@ -172,15 +172,157 @@ namespace Tesses::CrossLang
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class FS_Watcher : public TNativeObject {
|
||||||
|
public:
|
||||||
|
std::shared_ptr<Tesses::Framework::Filesystem::FSWatcher> watcher;
|
||||||
|
|
||||||
|
FS_Watcher(std::shared_ptr<Tesses::Framework::Filesystem::FSWatcher> watcher): watcher(watcher)
|
||||||
|
{}
|
||||||
|
|
||||||
|
TObject CallMethod(GCList& ls, std::string name, std::vector<TObject> args)
|
||||||
|
{
|
||||||
|
if(name == "getPath")
|
||||||
|
{
|
||||||
|
return watcher->GetPath();
|
||||||
|
}
|
||||||
|
if(name == "getFilesystem")
|
||||||
|
{
|
||||||
|
return watcher->GetFilesystem();
|
||||||
|
}
|
||||||
|
if(name == "setEnabled")
|
||||||
|
{
|
||||||
|
bool enabled;
|
||||||
|
if(GetArgument(args,0,enabled))
|
||||||
|
{
|
||||||
|
watcher->SetEnabled(enabled);
|
||||||
|
return enabled;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(name == "getEnabled")
|
||||||
|
{
|
||||||
|
return watcher->GetEnabled();
|
||||||
|
}
|
||||||
|
if(name == "setEvents")
|
||||||
|
{
|
||||||
|
int64_t evts;
|
||||||
|
if(GetArgument(args,0,evts))
|
||||||
|
{
|
||||||
|
watcher->events = (Tesses::Framework::Filesystem::FSWatcherEventType)evts;
|
||||||
|
return evts;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(name == "getEvents")
|
||||||
|
{
|
||||||
|
return (int64_t)watcher->events;
|
||||||
|
}
|
||||||
|
if(name == "setCallback")
|
||||||
|
{
|
||||||
|
TCallable* callable=nullptr;
|
||||||
|
if(GetArgumentHeap(args,0,callable))
|
||||||
|
{
|
||||||
|
auto markedT = CreateMarkedTObject(ls,callable);
|
||||||
|
watcher->event = [markedT](Tesses::Framework::Filesystem::FSWatcherEvent& evt) -> void {
|
||||||
|
GCList ls(markedT->GetGC());
|
||||||
|
TObject o = markedT->GetObject();
|
||||||
|
TCallable* callable;
|
||||||
|
if(GetObjectHeap(o,callable))
|
||||||
|
{
|
||||||
|
auto isEvent = TExternalMethod::Create(ls,"",{},[evt](GCList& ls, std::vector<TObject> args)->TObject
|
||||||
|
{
|
||||||
|
int64_t n;
|
||||||
|
if(GetArgument(args,0,n))
|
||||||
|
{
|
||||||
|
auto myevt = evt;
|
||||||
|
return myevt.IsEvent((Tesses::Framework::Filesystem::FSWatcherEventType)n);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
auto toString = TExternalMethod::Create(ls,"",{},[evt](GCList& ls, std::vector<TObject> args)->TObject
|
||||||
|
{
|
||||||
|
auto myevt = evt;
|
||||||
|
return myevt.ToString();
|
||||||
|
});
|
||||||
|
|
||||||
|
auto dict = TDictionary::Create(ls, {TDItem("IsDirectory",evt.isDir),TDItem("Type",(int64_t)evt.type),TDItem("Source",evt.src), TDItem("Destination",evt.dest),TDItem("ToString",toString),TDItem("IsEvent",isEvent)});
|
||||||
|
callable->Call(ls,{dict});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
watcher->event=nullptr;
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
if(name == "Start")
|
||||||
|
{
|
||||||
|
watcher->SetEnabled(true);
|
||||||
|
}
|
||||||
|
if(name == "Stop")
|
||||||
|
{
|
||||||
|
watcher->SetEnabled(false);
|
||||||
|
}
|
||||||
|
if(name == "ToString")
|
||||||
|
{
|
||||||
|
return "FSWatcher";
|
||||||
|
}
|
||||||
|
return Undefined();
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string TypeName() {
|
||||||
|
return "FSWatcher";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
TObject New_FSWatcher(GCList& ls, std::vector<TObject> args)
|
||||||
|
{
|
||||||
|
std::shared_ptr<Tesses::Framework::Filesystem::VFS> vfs;
|
||||||
|
Tesses::Framework::Filesystem::VFSPath path;
|
||||||
|
if(GetArgument(args,0,vfs) && GetArgumentAsPath(args,1,path))
|
||||||
|
{
|
||||||
|
return TNativeObject::Create<FS_Watcher>(ls,Tesses::Framework::Filesystem::FSWatcher::Create(vfs,path));
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void TStd::RegisterIO(GC* gc,TRootEnvironment* env,bool enableLocalFilesystem)
|
void TStd::RegisterIO(GC* gc,TRootEnvironment* env,bool enableLocalFilesystem)
|
||||||
{
|
{
|
||||||
|
|
||||||
env->permissions.canRegisterIO=true;
|
env->permissions.canRegisterIO=true;
|
||||||
env->permissions.canRegisterLocalFS = enableLocalFilesystem;
|
env->permissions.canRegisterLocalFS = enableLocalFilesystem;
|
||||||
GCList ls(gc);
|
GCList ls(gc);
|
||||||
TDictionary* dict = TDictionary::Create(ls);
|
|
||||||
|
|
||||||
gc->BarrierBegin();
|
gc->BarrierBegin();
|
||||||
|
auto newDict = env->EnsureDictionary(gc, "New");
|
||||||
|
newDict->DeclareFunction(gc,"FSWatcher","Watch a file/directory",{"vfs","path"}, New_FSWatcher);
|
||||||
|
auto dict = env->EnsureDictionary(gc,"FS");
|
||||||
|
dict->SetValue("SEEK_SET",(int64_t)Tesses::Framework::Streams::SeekOrigin::Begin);
|
||||||
|
dict->SetValue("SEEK_CUR",(int64_t)Tesses::Framework::Streams::SeekOrigin::Current);
|
||||||
|
dict->SetValue("SEEK_END",(int64_t)Tesses::Framework::Streams::SeekOrigin::End);
|
||||||
|
dict->SetValue("FSWatcherEvents",TDictionary::Create(ls,
|
||||||
|
{
|
||||||
|
TDItem("None", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::None),
|
||||||
|
TDItem("Accessed", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Accessed),
|
||||||
|
TDItem("AttributeChanged", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::AttributeChanged),
|
||||||
|
TDItem("Writen", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Writen),
|
||||||
|
TDItem("Read", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Read),
|
||||||
|
TDItem("Created", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Created),
|
||||||
|
TDItem("Deleted", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Deleted),
|
||||||
|
TDItem("WatchEntryDeleted", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::WatchEntryDeleted),
|
||||||
|
TDItem("Modified", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Modified),
|
||||||
|
TDItem("WatchEntryMoved", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::WatchEntryMoved),
|
||||||
|
TDItem("MoveOld", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::MoveOld),
|
||||||
|
TDItem("MoveNew", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::MoveNew),
|
||||||
|
TDItem("Opened", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Opened),
|
||||||
|
TDItem("Closed", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Closed),
|
||||||
|
TDItem("Moved", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::Moved),
|
||||||
|
TDItem("All", (int64_t)Tesses::Framework::Filesystem::FSWatcherEventType::All)
|
||||||
|
}
|
||||||
|
));
|
||||||
|
|
||||||
if(enableLocalFilesystem)
|
if(enableLocalFilesystem)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -202,7 +344,7 @@ namespace Tesses::CrossLang
|
|||||||
|
|
||||||
dict->DeclareFunction(gc, "CreateArchive", "Create a crvm archive",{"fs","strm","name","version","info"},FS_CreateArchive);
|
dict->DeclareFunction(gc, "CreateArchive", "Create a crvm archive",{"fs","strm","name","version","info"},FS_CreateArchive);
|
||||||
dict->DeclareFunction(gc,"ExtractArchive", "Extract a crvm archive",{"strm","vfs"},FS_ExtractArchive);
|
dict->DeclareFunction(gc,"ExtractArchive", "Extract a crvm archive",{"strm","vfs"},FS_ExtractArchive);
|
||||||
env->DeclareVariable("FS", dict);
|
|
||||||
gc->BarrierEnd();
|
gc->BarrierEnd();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user