-
-
Notifications
You must be signed in to change notification settings - Fork 2
Create devops-build for the app #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
tsubramanian
wants to merge
36
commits into
main
Choose a base branch
from
devops-build
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5cd0ddd
Create main.yml
tsubramanian 65cc633
Update main.yml
tsubramanian f2b8e9f
Update main.yml
tsubramanian 7135973
Update main.yml
tsubramanian 5696f79
Update main.yml
tsubramanian 674f247
Update main.yml
tsubramanian 284cf63
Update main.yml
tsubramanian f727fbd
Update main.yml
tsubramanian 431f5a0
Update main.yml
tsubramanian 2f1d555
Update main.yml
tsubramanian 3a3aa04
Update main.yml
tsubramanian 82ba6ab
Update main.yml
tsubramanian 6ed0305
Update main.yml
tsubramanian ab135a9
Update main.yml
tsubramanian fcdaa15
Update main.yml
tsubramanian 7756cb8
Update main.yml
tsubramanian 1f6711a
Update main.yml
tsubramanian 550cb53
Update main.yml
tsubramanian 0eeef6d
Update main.yml
tsubramanian 16b2ac7
Update main.yml
tsubramanian 1e6b2e2
Update main.yml
tsubramanian a203c4e
Update main.yml
tsubramanian aa4421d
Update main.yml
tsubramanian 797eb7e
Update main.yml
tsubramanian 4a8fa3e
Update main.yml
tsubramanian 5f555f1
Create README.md
tsubramanian e0df2ed
Update main.yml
tsubramanian 9c3b62e
Update main.yml
tsubramanian e97c70e
Update main.yml
tsubramanian 505d3c7
Update main.yml
tsubramanian 8286849
Update forge.config.ts
tsubramanian 80dc884
Update forge.config.ts
tsubramanian f516dbf
Update forge.config.ts
tsubramanian 9044353
Update forge.config.ts
tsubramanian d453025
Update main.yml
tsubramanian 800d593
Update main.yml
tsubramanian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| name: Build Wildbook Installers | ||
| on: | ||
| push: | ||
| branches: | ||
| - devops-build | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| contents: write | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 360 # Set the timeout to 6 hours | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'npm' | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.10' | ||
|
|
||
| - name: Ensure setuptools is installed | ||
| run: | | ||
| python3 -m ensurepip | ||
| python3 -m pip install setuptools | ||
|
|
||
| - name: Install dependencies in Windows | ||
| if: ${{ matrix.os == 'windows-latest' }} | ||
| shell: powershell | ||
| run: | | ||
| $env:NODE_GYP_FORCE_PYTHON = (Get-Command python | Select-Object -ExpandProperty Path) | ||
| npm install --no-audit | ||
|
|
||
| - name: Install dependencies in Mac | ||
| if: ${{ matrix.os == 'macos-latest' }} | ||
| shell: bash | ||
| run: | | ||
| NODE_GYP_FORCE_PYTHON=$(which python3) npm install --save-dev appdmg --no-audit | ||
| npm install --no-audit | ||
|
|
||
| - name: Install dependencies in Linux | ||
| if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| shell: bash | ||
| run: | | ||
| NODE_GYP_FORCE_PYTHON=$(which python3) npm install --save-dev @electron-forge/maker-deb | ||
| NODE_GYP_FORCE_PYTHON=$(which python3) npm install --save-dev @electron-forge/maker-rpm | ||
| NODE_GYP_FORCE_PYTHON=$(which python3) npm install --no-audit | ||
|
|
||
| - name: Build the application | ||
| run: npm run make | ||
|
|
||
| - name: List Windows output directory | ||
| if: ${{ matrix.os == 'windows-latest' }} | ||
| shell: cmd | ||
| run: dir out\make\squirrel.windows\x64 | ||
|
|
||
| - name: List Mac output directory | ||
| if: ${{ matrix.os == 'macos-latest' }} | ||
| shell: bash | ||
| run: ls -l out/make | ||
|
|
||
| - name: List Linux output directory | ||
| if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| shell: bash | ||
| run: ls -lR out/make | ||
|
|
||
| - name: Upload Windows artifacts | ||
| if: ${{ matrix.os == 'windows-latest' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: windows-installer | ||
| path: out\make\squirrel.windows\x64\*.exe | ||
|
|
||
| - name: Upload Mac artifacts | ||
| if: ${{ matrix.os == 'macos-latest' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: macos-installer | ||
| path: out/make/*.dmg | ||
|
|
||
| - name: Upload Linux artifacts | ||
| if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: linux-installer | ||
| path: out/make/deb/x64/*.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| ## Manual Build Instructions | ||
|
|
||
|
|
||
| # Project Build and Packaging Instructions | ||
|
|
||
| This guide explains how to manually build and package the application for different platforms without using GitHub Actions. | ||
|
|
||
| ## Prerequisites | ||
| - Node.js (v18 or higher) | ||
| - Python (v3.10) | ||
| - A working internet connection to install dependencies | ||
|
|
||
| --- | ||
|
|
||
| ## Steps to Build and Package the Application | ||
|
|
||
| ### 1. Install Dependencies | ||
| Run the following command to install all required dependencies: | ||
|
|
||
| ```bash | ||
| npm install --no-audit | ||
| ``` | ||
|
|
||
| If your project relies on native dependencies (e.g., node-gyp), ensure Python is properly configured: | ||
|
|
||
| On macOS/Linux: | ||
|
|
||
| ``` bash | ||
|
|
||
| export NODE_GYP_FORCE_PYTHON=$(which python3) | ||
| ``` | ||
|
|
||
| On Windows, manually set the Python path by running: | ||
|
|
||
| ```powershell | ||
|
|
||
| $env:NODE_GYP_FORCE_PYTHON = (Get-Command python | Select-Object -ExpandProperty Path) | ||
| ``` | ||
|
|
||
| 2. Build the Application | ||
| Run the following command to generate platform-specific installers: | ||
|
|
||
| ```bash | ||
|
|
||
| npm run make | ||
| ``` | ||
|
|
||
| This will create the output files in the out/make directory. | ||
|
|
||
| 3. Verify the Output | ||
| Once the build process is complete, check the out/make directory for the generated files: | ||
|
|
||
| On macOS/Linux: | ||
|
|
||
| ```bash | ||
| ls out/make | ||
| ``` | ||
|
|
||
| On Windows: | ||
|
|
||
| ``` | ||
| powershell | ||
|
|
||
| dir out\make\squirrel.windows\x64 | ||
| ``` | ||
|
|
||
| 4. Upload Installers | ||
| Locate the generated installer files: | ||
|
|
||
| .dmg for macOS | ||
| .exe for Windows | ||
| Manually upload these files to the desired location (e.g., file server, cloud storage). | ||
|
|
||
| ## Notes: | ||
| If you encounter issues during dependency installation, ensure Python is correctly installed and accessible in your system’s PATH. | ||
| Suppress warnings about vulnerabilities using the --no-audit flag when running npm install. | ||
| For more debugging, check the build logs in your terminal or use the verbose mode: | ||
|
|
||
| ```bash | ||
|
|
||
| npm run make -- --verbose | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trying to run this on linux, i got this error when i did
npm run make:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can add Linux build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@naknomum, please try this installable .deb work in ubuntu ? https://github.com/WildMeOrg/WildbookExport/actions/runs/13126657184/artifacts/2531113303