Skip to content

Commit

Permalink
Enable creation/opening of existing projects in the platform. android…
Browse files Browse the repository at this point in the history
  • Loading branch information
sonakshisaxena1 committed Nov 5, 2024
2 parents 57a4e73 + 49ccc7f commit a1fc7c2
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 2 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build Sherlock Platform

on:
# Triggers the workflow on push or pull request events but only for the idea/242.21829.142 branch
# TODO: Update the branch once finalised
push:
branches:
- '*'
pull_request:
branches:
- '*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Set JAVA_HOME
run: echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV

- name: Grant execute permission to build script
run: chmod +x ./build_sherlock_platform.sh

- name: Build Sherlock Platform
run: ./build_sherlock_platform.sh

- name: Upload Sherlock Platform artifact for Linux
uses: actions/upload-artifact@v3
with:
name: sherlock-platform-linux
path: out/sherlock-platform/artifacts/sherlock-platform.tar.gz

- name: Upload Sherlock Platform artifact for Mac
uses: actions/upload-artifact@v3
with:
name: sherlock-platform-mac
path: out/sherlock-platform/artifacts/sherlock-platform.mac.aarch64.zip

- name: Upload Sherlock Platform artifact for Windows
uses: actions/upload-artifact@v3
with:
name: sherlock-platform-win
path: out/sherlock-platform/artifacts/sherlock-platform.win.zip

- name: Upload Sherlock Platform Sources
uses: actions/upload-artifact@v3
with:
name: sherlock-platform-sources
path: out/sherlock-platform/artifacts/sherlock-platform-sources.zip
1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Sherlock Platform

## About

This is the customized IntelliJ platform for Sherlock Project based
off the IntelliJ Platform Version 2024.2. To read more on the IntelliJ Platform documentation scroll down to the IntelliJ IDEA Community
Edition section.

## Developer Documentation

### Build Instructions for Sherlock Platform
The following steps build Sherlock Platform only on Linux and Mac:

* Run `chmod +x ./build_sherlock_platform.sh` from the root of the directory to grant access.
* Run `./build_sherlock_platform.sh` to build the platform.
* Extract the artifact from `out/sherlock-platform/artifacts` according to the OS.
* Run the platform from `out/sherlock-platform/artifacts/sherlock-platform-242.21829/Sherlock\ Platform-2024.2.1/bin/`

# IntelliJ IDEA Community Edition [![official JetBrains project](http://jb.gg/badges/official.svg)](https://github.com/JetBrains/.github/blob/main/profile/README.md)
These instructions will help you build IntelliJ IDEA Community Edition from source code, which is the basis for IntelliJ Platform development.
The following conventions will be used to refer to directories on your machine:
Expand Down
2 changes: 1 addition & 1 deletion build_sherlock_platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BUILD_PROPERTIES=(
"-Dbuild.number=${AS_BUILD_NUMBER}"
"-Dintellij.build.dev.mode=false"
"-Dcompile.parallel=true"
"-Dintellij.build.skip.build.steps=repair_utility_bundle_step,mac_dmg,mac_sign,mac_sit,windows_exe_installer,linux aarch64,windows aarch64" # TODO
"-Dintellij.build.skip.build.steps=repair_utility_bundle_step,mac_dmg,mac_sign,mac_sit,windows_exe_installer,linux aarch64,windows aarch64,mac x64" # TODO
"-Dintellij.build.incremental.compilation=true" # TODO
"-Dintellij.build.incremental.compilation.fallback.rebuild=false"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SherlockProperties(home: Path) : BaseIdeaProperties() {
platformPrefix = "SherlockPlatform"
applicationInfoModule = "com.google.sherlock.branding"
useSplash = true
buildSourcesArchive = true
productLayout.buildAllCompatiblePlugins = false
productLayout.prepareCustomPluginRepositoryForPublishedPlugins = false
productLayout.productImplementationModules = listOf(
Expand All @@ -39,7 +40,7 @@ class SherlockProperties(home: Path) : BaseIdeaProperties() {

override val baseFileName: String = "sherlock-platform"

override fun getBaseArtifactName(appInfo: ApplicationInfoProperties, buildNumber: String): String = "sherlock-platform-$buildNumber"
override fun getBaseArtifactName(appInfo: ApplicationInfoProperties, buildNumber: String): String = "sherlock-platform"

override fun getSystemSelector(appInfo: ApplicationInfoProperties, buildNumber: String): String = "SherlockPlatform"

Expand Down

0 comments on commit a1fc7c2

Please sign in to comment.