-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 436c537
Showing
210 changed files
with
14,281 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,61 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
gradle: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
artifact_name: memosc_${{ github.ref_name }}_amd64.deb | ||
asset_name: memosc_${{ github.ref_name }}_amd64.deb | ||
type: Deb | ||
dir: deb | ||
- os: windows-latest | ||
artifact_name: memosc-${{ github.ref_name }}.exe | ||
asset_name: memosc-${{ github.ref_name }}.exe | ||
type: Exe | ||
dir: exe | ||
- os: macos-latest | ||
artifact_name: memosc-${{ github.ref_name }}.dmg | ||
asset_name: memosc-${{ github.ref_name }}.dmg | ||
type: Dmg | ||
dir: dmg | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: oracle | ||
java-version: 19 | ||
cache: 'gradle' | ||
- uses: ConorMacBride/install-package@v1 | ||
with: | ||
apt: fakeroot | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- uses: SebRollen/[email protected] | ||
id: read_toml | ||
with: | ||
file: 'gradle/libs.versions.toml' | ||
field: 'versions.packageVersion' | ||
|
||
- name: Execute Gradle build | ||
|
||
run: ./gradlew packageRelease${{ matrix.type }} --no-daemon | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
env: | ||
FILE_NAME: ${{steps.read_toml.outputs.value}} | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: composeApp/build/compose/binaries/main-release/${{ matrix.dir }}/${{ matrix.artifact_name }} | ||
asset_name: ${{ matrix.asset_name }} | ||
# tag: ${{ github.ref }} | ||
overwrite: true | ||
#composeApp/build/compose/binaries/main/dmg/memosc-1.0.0.dmg |
This file contains 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,48 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
gradle: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
artifact_name: memosc_${{ github.ref_name }}_amd64.deb | ||
asset_name: memosc_${{ github.ref_name }}_amd64.deb | ||
type: Deb | ||
dir: deb | ||
- os: windows-latest | ||
artifact_name: memosc-${{ github.ref_name }}.exe | ||
asset_name: memosc-${{ github.ref_name }}.exe | ||
type: Exe | ||
dir: exe | ||
- os: macos-latest | ||
artifact_name: memosc-${{ github.ref_name }}.dmg | ||
asset_name: memosc-${{ github.ref_name }}.dmg | ||
type: Dmg | ||
dir: dmg | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: oracle | ||
java-version: 19 | ||
cache: 'gradle' | ||
- uses: ConorMacBride/install-package@v1 | ||
with: | ||
apt: fakeroot | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- uses: SebRollen/[email protected] | ||
id: read_toml | ||
with: | ||
file: 'gradle/libs.versions.toml' | ||
field: 'versions.packageVersion' | ||
- name: Execute Gradle build | ||
run: ./gradlew packageRelease${{ matrix.type }} --no-daemon |
This file contains 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,20 @@ | ||
*.iml | ||
.gradle | ||
**/build/ | ||
xcuserdata | ||
!src/**/build/ | ||
local.properties | ||
.idea | ||
.DS_Store | ||
captures | ||
.externalNativeBuild | ||
.cxx | ||
*.xcodeproj/* | ||
!*.xcodeproj/project.pbxproj | ||
!*.xcodeproj/xcshareddata/ | ||
!*.xcodeproj/project.xcworkspace/ | ||
!*.xcworkspace/contents.xcworkspacedata | ||
**/xcshareddata/WorkspaceSettings.xcsettings | ||
/composeApp/settings_preferences.preferences_pb | ||
/.env | ||
*.db |
This file contains 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 springeye | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains 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,14 @@ | ||
This is a Kotlin Multiplatform project targeting Android, iOS, Desktop. | ||
|
||
* `/composeApp` is for code that will be shared across your Compose Multiplatform applications. | ||
It contains several subfolders: | ||
- `commonMain` is for code that’s common for all targets. | ||
- Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name. | ||
For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app, | ||
`iosMain` would be the right folder for such calls. | ||
|
||
* `/iosApp` contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform, | ||
you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project. | ||
|
||
|
||
Learn more about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html)… |
This file contains 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,8 @@ | ||
plugins { | ||
// this is necessary to avoid the plugins to be loaded multiple times | ||
// in each subproject's classloader | ||
alias(libs.plugins.androidApplication) apply false | ||
alias(libs.plugins.androidLibrary) apply false | ||
alias(libs.plugins.jetbrainsCompose) apply false | ||
alias(libs.plugins.kotlinMultiplatform) apply false | ||
} |
Oops, something went wrong.