The project is an independent cross-platform implementation of a virtual machine that executes scripts written in the 1C:Enterprise language
The 1C:Enterprise system libraries are not used and installation of the 1C:Enterprise system on the target machine is not required.
In other words, this is a tool for writing and executing programs in the 1C language without using the 1C:Enterprise platform.
The project is called OneScript, can be abbreviated to the title 1Script when writing. Pronounced as [uanskript].
OneScript allows you to create and execute text scripts written in a language familiar to any specialist working with the 1C:Enterprise system. Using a familiar language for script automation significantly increases a specialist's productivity by simplifying the automation of manual operations.
Main information about the project, releases and technical documentation are located on the official website
The OneScript distribution already includes a set of the most commonly used packages. These, as well as other packages, are located in the oscript-library repository and are available to everyone. There is a package manager opm.
- (interactively) download from the official website or installer from the Releases section and run it. Then, Next, Done.
- Download the ZIP archive for Linux from the Releases section or from the official website.
- Extract the archive to a convenient directory.
- Set executable permissions:
chmod +x oscript
- Download the ZIP archive for macOS (x64 or arm64) from the Releases section or from the official website.
- Extract the archive to a convenient directory.
- Perform additional configuration to remove quarantine and sign the binary:
chmod +x ./oscript xattr -d com.apple.quarantine *.dylib oscript codesign -s - ./oscript
Links to distributions are provided below, however, please note that links may change over time and their relevance is not guaranteed. You need dotnet SDK and C++ compiler, which can be downloaded from anywhere you can find.
- Install MS BuildTools, when installing enable targeting for .net6, .net4.8, install C++ compiler.
Launch Developer Command Prompt (will appear in the Start menu after installing MSBuildTools or Visual Studio). Navigate to the OneScript repository directory. The following are commands in the Developer Command Prompt console. Build is performed using msbuild. Targets:
- CleanAll - clean previous build results
- BuildAll - prepare files for distribution
- MakeCPP;MakeFDD;MakeSCD;BuildDebugger - separate build targets for preparing different types of distributions
- PrepareDistributionFiles - build full distribution packages (including libraries)
- PackDistributions - prepare ZIP archives for distribution
- CreateNuget - create packages for publishing to NuGet
Build parameters
- VersionPrefix - release number prefix, its main part, for example, 2.0.0
- VersionSuffix - version suffix, which usually acts as an arbitrary versioning suffix according to semver, for example, beta-786 (optional)
- NoCppCompiler - if True - C++ compiler is not installed, C++ components (NativeApi support) will not be added to the build
All distribution files will be placed in the built directory at the root of the 1Script repository
msbuild Build.csproj /t:CleanAll;PrepareDistributionFilesmsbuild Build.csproj /t:CleanAll;PrepareDistributionFiles /p:VersionPrefix=2.0.0msbuild Build.csproj /t:CleanAll;PrepareDistributionFiles;PackDistributions /p:VersionPrefix=2.0.0 /p:VersionSuffix=preview223msbuild Build.csproj /t:BuildDocumentation
