Skip to content

Commit 3691c06

Browse files
committed
linux
1 parent 98fb105 commit 3691c06

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

.github/workflows/generator-linux.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ env:
7070
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
7171
# vcpkg version: 2024.07.12
7272
VCPKG_COMMIT_ID: "1de2026f28ead93ff1773e6e680387643e914ea1"
73-
VERSION: "1.3.1"
73+
VERSION: ${{ fromJson(inputs.extras).version }}
7474
NDK_VERSION: "r27"
7575
#signing keys env variable checks
7676
ANDROID_SIGNING_KEY: "${{ secrets.ANDROID_SIGNING_KEY }}"
@@ -141,6 +141,7 @@ jobs:
141141
uses: actions/checkout@v4
142142
with:
143143
repository: rustdesk/rustdesk
144+
ref: refs/tags/${{ env.VERSION }}
144145

145146
- name: Set Swap Space
146147
if: ${{ matrix.job.arch == 'x86_64' }}
@@ -289,8 +290,8 @@ jobs:
289290
- name: icon stuff
290291
continue-on-error: true
291292
run: |
292-
mv ./rustdesk/data/flutter_assets/assets/icon.svg ./rustdesk/data/flutter_assets/assets/icon.svg.bak
293-
magick ./res/icon.png ./rustdesk/data/flutter_assets/assets/icon.svg
293+
#mv ./rustdesk/data/flutter_assets/assets/icon.svg ./rustdesk/data/flutter_assets/assets/icon.svg.bak
294+
convert ./res/icon.png ./rustdesk/data/flutter_assets/assets/icon.svg
294295
295296
- uses: rustdesk-org/run-on-arch-action@amd64-support
296297
name: Build rustdesk
@@ -420,6 +421,10 @@ jobs:
420421
chmod 777 output -R
421422
export CARGO_INCREMENTAL=0
422423
export DEB_ARCH=${{ matrix.job.deb_arch }}
424+
echo "$(ls)"
425+
echo "${{ inputs.logobase64 }}" | base64 -d > ./rustdesk/data/flutter_assets/assets/logo.png
426+
mv ./rustdesk/data/flutter_assets/assets/icon.svg ./rustdesk/data/flutter_assets/assets/icon.svg.bak
427+
convert ./res/icon.png ./rustdesk/data/flutter_assets/assets/icon.svg
423428
pushd ./flutter
424429
flutter pub run flutter_launcher_icons
425430
popd

.github/workflows/generator-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ env:
7171
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
7272
# vcpkg version: 2024.07.12
7373
VCPKG_COMMIT_ID: "1de2026f28ead93ff1773e6e680387643e914ea1"
74-
VERSION: "1.3.1"
74+
VERSION: ${{ fromJson(inputs.extras).version }}
7575
NDK_VERSION: "r27"
7676
#signing keys env variable checks
7777
ANDROID_SIGNING_KEY: "${{ secrets.ANDROID_SIGNING_KEY }}"
@@ -135,7 +135,7 @@ jobs:
135135
uses: actions/checkout@v4
136136
with:
137137
repository: rustdesk/rustdesk
138-
ref: refs/tags/1.3.1
138+
ref: refs/tags/${{ env.VERSION }}
139139

140140
# - name: Install LLVM and Clang
141141
# uses: KyleMayes/install-llvm-action@v1

rdgenerator/forms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
class GenerateForm(forms.Form):
44
#Platform
55
platform = forms.ChoiceField(choices=[('windows','Windows'),('linux','Linux (currently unavailable)'),('android','Android (testing now available)')], initial='windows')
6+
version = forms.ChoiceField(choices=[('master','beta'),('1.3.1,','1.3.1'),('1.3.0','1.3.0')], initial='1.3.1')
67
delayFix = forms.BooleanField(initial=True, required=False)
78

89
#General

rdgenerator/templates/generator.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ <h2><i class="fas fa-desktop"></i> Select Platform</h2>
123123
<option value="linux">Linux (testing, will likely have issues)</option>
124124
<option value="android">Android (testing, will likely have issues)</option>
125125
</select>
126+
<label for="{{ form.version.id_for_label }}">Rustdesk Version:</label>
127+
{{ form.version }}
126128
<label for="{{ form.delayFix.id_for_label }}">{{ form.delayFix }} Fix connection delay when using third-party API</label>
127129
</div>
128130
</div>

rdgenerator/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def generator_view(request):
1919
form = GenerateForm(request.POST, request.FILES)
2020
if form.is_valid():
2121
platform = form.cleaned_data['platform']
22+
version = form.cleaned_data['version']
2223
delayFix = form.cleaned_data['delayFix']
2324
server = form.cleaned_data['serverIP']
2425
key = form.cleaned_data['key']
@@ -143,6 +144,7 @@ def generator_view(request):
143144
extras['runasadmin'] = runasadmin
144145
extras['urlLink'] = urlLink
145146
extras['delayFix'] = 'true' if delayFix else 'false'
147+
extras['version'] = version
146148
extra_input = json.dumps(extras)
147149

148150
####from here run the github action, we need user, repo, access token.

0 commit comments

Comments
 (0)