Skip to content

This repository contains the scripts to compile and build the AymurAI installer

License

Notifications You must be signed in to change notification settings

AymurAI/installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AymurAI Installer

This repository contains the scripts to compile and build the AymurAI installer for Windows.

The installer includes the AymurAI application, Miniconda, and LibreOffice. The installer is built using the Nullsoft Scriptable Install System (NSIS). The compilation can be done on a native Windows environment or in a Docker container using wine.

Repository Structure

The repository structure is as follows:

.
├── build
│   └── AymurAI-Installer.exe
├── .devcontainer
│   ├── devcontainer.json
│   └── Dockerfile
├── LICENSE.md
├── README.md
├── resources
│   ├── api
│   │   ├── pipelines
│   │   │   └── production
│   │   │       ├── doc-extraction
│   │   │       │   └── pipeline.json
│   │   │       ├── flair-anonymizer
│   │   │       │   └── pipeline.json
│   │   │       └── full-paragraph
│   │   │           └── pipeline.json
│   │   └── static
│   │       └── logo256-text.ico
│   ├── api_changes.patch
│   ├── aymurai-1.1.0-py3-none-any.whl
│   ├── environment.yml
│   ├── install.bat
|   ├── LibreOffice_24.8.2_Win_x86-64.msi
|   ├── Miniconda3-py312_24.7.1-0-Windows-x86_64.exe
│   ├── run_server.bat
│   └── uninstall.bat
└── scripts
    ├── headers
    │   ├── install_backend.nsh
    │   ├── install_frontend.nsh
    │   └── uninstall.nsh
    └── installer.nsi
  • The build directory contains the compiled installer executable. The installer is created in this directory after compilation.
  • The .devcontainer directory contains the configuration file and Dockerfile for the development container.
  • The resources directory contains the resources required to build the installer, such as the Miniconda and LibreOffice installers, the AymurAI wheel file, and the environment file, among others.
  • The scripts directory contains the NSIS installer script and the headers for the installer script.

Getting Started

Prerequisites

  • NSIS (if compiling on a native Windows environment)
  • Docker (if compiling in a development container)
  • Visual Studio Code (if using the development container)

VS Code development environment

  1. Install the Dev Containers extension for Visual Studio Code.
  2. Open the repository in Visual Studio Code.
  3. Click on the Reopen in Container button in the bottom right corner of the window to open the repository in a development container. Alternatively, you can run the Dev Containers: Reopen in Container command from the command palette (Ctrl+Shift+P).
  4. The development container will be built and the repository will be opened in the container. This may take a few minutes. The wine command will be available in the container to compile the installer.

Downloading Installers

To download the LibreOffice and Miniconda installers into the resources directory, run the following commands:

# Download LibreOffice installer
wget -P resources https://download.documentfoundation.org/libreoffice/stable/24.8.2/win/x86_64/LibreOffice_24.8.2_Win_x86-64.msi

# Download Miniconda installer
wget -P resources https://repo.anaconda.com/miniconda/Miniconda3-py312_24.7.1-0-Windows-x86_64.exe

Alternatively, you can download the installers manually and place them in the resources directory. Be sure to update the installer filenames in the installer.nsi script if you use different versions.

Compiling the Installer

If you are working on a native Windows environment, you can use the NSIS compiler directly. Download the NSIS installer and install it on your system. Load the installer.nsi script located in the scripts directory using the NSIS compiler and compile the installer.

If you are working in the development container, you can compile the installer using the wine command. Run the following command to compile the installer:

# Compile the installer
wine ~/.wine/drive_c/Program\ Files/NSIS/makensis.exe -- scripts/installer.nsi

The installer executable will be created in the build directory.

Contributing

We welcome contributions to AymurAI! If you would like to contribute, feel free to submit a pull request with your changes or open an issue if you have any questions or suggestions.

Contributors

Citing AymurAI

If you use AymurAI in your research or any publication, please cite the following paper to acknowledge our work:

@techreport{feldfeber2022,
    author      = "Feldfeber, Ivana and Quiroga, Yasmín Belén  and Guevara, Clarissa  and Ciolfi Felice, Marianela",
    title       = "Feminisms in Artificial Intelligence: Automation Tools towards a Feminist Judiciary Reform in Argentina and Mexico",
    institution = "DataGénero",
    year        = "2022",
    url         = "https://drive.google.com/file/d/1P-hW0JKXWZ44Fn94fDVIxQRTExkK6m4Y/view"
}

Proper citation helps us continue developing AymurAI and supporting the community.

License

AymurAI is open-source software licensed under the MIT License. This license allows for modification, distribution, and private use, provided that appropriate credit is given to the original authors.

About

This repository contains the scripts to compile and build the AymurAI installer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published