Skip to content

Various fixes #1579

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

Merged
merged 2 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions build_then_launch.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

file_x86="./io.sloeber.product/target/products/io.sloeber.product/linux/gtk/x86/sloeber/sloeber-ide"
file_x86_64="./io.sloeber.product/target/products/io.sloeber.product/linux/gtk/x86_64/sloeber/sloeber-ide"
file_x86_64="./io.sloeber.product/target/products/io.sloeber.product/linux/gtk/x86_64/Sloeber/sloeber-ide"
file=""

echo "Trying to build and then launch the Arduino Eclipse IDE"
Expand All @@ -23,11 +22,6 @@ fi

echo "Searching for the Eclipse executable (with our plugin pre-packaged) to launch"
#Find an executable if we made it successfully
if [[ -x "$file_x86" ]]
then
#echo "File '$file_x86' is executable"
file=$file_x86
fi

if [[ -x "$file_x86_64" ]]
then
Expand Down
2 changes: 1 addition & 1 deletion io.sloeber.product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<configuration>
<formats>
<win32>zip</win32>
<linux>zip</linux>
<linux>tar.gz</linux>
<macosx>zip</macosx>
</formats>
<products>
Expand Down
24 changes: 17 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ You only need to do one.
## Prerequisites
Please install [git](http://git-scm.com/downloads) and [maven](http://maven.apache.org/download.cgi).

Java 17 is required.

A 64-bit OS is required.


## Build from the command line from source for your os and the default eclipse instance
```bash
git clone https://github.com/Sloeber/arduino-eclipse-plugin sloeber
Expand All @@ -43,21 +48,26 @@ You can control the maven build with the following profiles:

* latest (default, builds against the latest versions)
* SDK (builds a Sloeber you can program Sloeber in. With Java.)
* win32 (builds for 32 bit windows)
* win64
* linux64
* mac64
* macm1

### Examples
mvn clean verify -Pwin64,latest,NOSDK -DskipTests=true (builds for latest eclipse and windows bits)
mvn clean verify -Plinux32,latest.NOSDK -DskipTests=true (builds for latest eclipse and linux 32 bits)
mvn clean verify -PSDK,win64,latest -DskipTests=true (builds the Sloeber SDK. For Sloeber programmers.)

To build for latest and the platform you are running on:

mvn clean verify -DskipTests=true
* Build the latest version for the platform you are running on:

`mvn clean verify -PNOSDK -DskipTests=true`

* Build Eclipse + Sloeber for 64-bit Windows:
`mvn clean verify -Pwin64,latest,NOSDK -DskipTests=true`

* Build Eclipse + Sloeber for 64-bit Linux:
`mvn clean verify -Plinux64,latest,NOSDK -DskipTests=true`

* Build the Sloeber SDK for 64-bit Windows (for Sloeber programmers):
`mvn clean verify -PSDK,win64,latest -DskipTests=true`

# Importing your build into another Eclipse
If you want to import the latest code based plugin to another Eclipse setup you have then it is possible to setup a local repository to install the plugin you have just built. Just add a local repository with location ```arduino-eclipse-plugin/io.sloeber.product/target/repository```

Expand Down