Compare commits
6 Commits
1cc31bda50
...
6f5f246a00
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f5f246a00 | |||
| 9c67f91e83 | |||
| 1a36c462f7 | |||
| 3c87d3e9b1 | |||
| 65fc936888 | |||
| 28b7245e04 |
@ -1,3 +1,3 @@
|
||||
# sr2ini
|
||||
# sr2ini_yhn
|
||||
|
||||
Simple Initiative tracker for Shadowrun 2e.
|
||||
sr2ini as a Yunohost package.
|
||||
|
||||
@ -1,16 +0,0 @@
|
||||
const s = require("../src/js/sr2ini.js");
|
||||
|
||||
describe ("test function rollForInitiative()", () => {
|
||||
test("function should accept numbes as integers as well as strings", () => {
|
||||
expect(typeof s.rollForInitiative("1", "5")).toBe("number");
|
||||
expect(typeof s.rollForInitiative(1, 5)).toBe("number");
|
||||
});
|
||||
|
||||
test("result should be greater than zero", () => {
|
||||
expect(s.rollForInitiative("1", "5")).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test("should return zero for bad parameters", () => {
|
||||
expect(s.rollForInitiative("a", 2)).toBe(0);
|
||||
});
|
||||
});
|
||||
51
manifest.toml
Normal file
51
manifest.toml
Normal file
@ -0,0 +1,51 @@
|
||||
packaging_format = 2
|
||||
|
||||
id = "sr2ini"
|
||||
name = "SR2 Initiative Tracker"
|
||||
description.en = "A simple initiative tracker for Shaodwrun 2e."
|
||||
description.de = "Ein einfacher Initiative-Tracker für Shaodwrun, 2. Edition."
|
||||
|
||||
version = "0.1~ynh1"
|
||||
|
||||
maintainers = ["Eclipse"]
|
||||
|
||||
[upstream]
|
||||
license = "ISC"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.1"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
ldap = "not_relevant"
|
||||
sso = "not_relevant"
|
||||
disk = "1M"
|
||||
ram.build = "1M"
|
||||
ram.runtime = "1M"
|
||||
|
||||
[install]
|
||||
[install.domain]
|
||||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
||||
type = "domain"
|
||||
|
||||
[install.path]
|
||||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
||||
type = "path"
|
||||
default = "/sr2ini"
|
||||
|
||||
[install.init_main_permission]
|
||||
type = "group"
|
||||
default = "visitors"
|
||||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://git.unterdemradar.de/tobias/sr2ini_ynh/src/branch/main/tools/sr2ini_ynh-o.1~ynh1.tar.gz"
|
||||
sha256 = "abfb79af75dbf3ff5dc9373f112df1767056f4bdb0b06ccdd885823a13e70df9"
|
||||
format = "tar.gz"
|
||||
in_subdir = "false"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
10
package.json
10
package.json
@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "sr2ini",
|
||||
"version": "1.0.0",
|
||||
"description": "Simple Initiative tracker for Shadowrun 2e",
|
||||
"name": "sr2ini_ynh",
|
||||
"version": "0.1~ynh1",
|
||||
"description": "sr2ini as a Yunohost package.",
|
||||
"private": true,
|
||||
"author": {
|
||||
"name": "Eclipse729",
|
||||
"email": "eclipse@unterdemradar.de",
|
||||
"url": "https://www.unterdemradar.de"
|
||||
"url": "https://unterdemradar.de"
|
||||
},
|
||||
"homepage": "https://www.unterdemradar.de/sr2ini/",
|
||||
"homepage": "",
|
||||
"license": "ISC",
|
||||
"source": "src/index.html",
|
||||
"devDependencies": {
|
||||
|
||||
16
scripts/install
Normal file
16
scripts/install
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setting up source files..." --weight=1
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user